]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: bugfix: NetSetTimeout assumes CONFIG_SYS_HZ=1000
authorTetsuyuki Kobayashi <koba@kmckk.co.jp>
Mon, 25 Jun 2012 02:37:27 +0000 (02:37 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 24 Sep 2012 18:17:24 +0000 (13:17 -0500)
NetSetTimeout sets incorrect value to timeDelta when CONFIG_SYS_HZ != 1000.

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
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;
        }
 }