]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - net/net.c
net: bugfix: NetSetTimeout assumes CONFIG_SYS_HZ=1000
[karo-tx-uboot.git] / net / net.c
index e8ff0662b8858f313f769e26c134c1e93d5bd10e..f4404342f7c2d6d4e2ef26da39c263083e2e0c24 100644 (file)
--- a/net/net.c
+++ b/net/net.c
@@ -652,7 +652,7 @@ NetSetTimeout(ulong iv, thand_f *f)
                        "--- NetLoop timeout handler set (%p)\n", f);
                timeHandler = f;
                timeStart = get_timer(0);
-               timeDelta = iv;
+               timeDelta = iv * CONFIG_SYS_HZ / 1000;
        }
 }