From: Tetsuyuki Kobayashi Date: Mon, 25 Jun 2012 02:37:27 +0000 (+0000) Subject: net: bugfix: NetSetTimeout assumes CONFIG_SYS_HZ=1000 X-Git-Tag: v2012.10-rc2~12^2~24 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1389f98fced3651ece415a6011ccbdfac3a52286;p=u-boot net: bugfix: NetSetTimeout assumes CONFIG_SYS_HZ=1000 NetSetTimeout sets incorrect value to timeDelta when CONFIG_SYS_HZ != 1000. Signed-off-by: Tetsuyuki Kobayashi --- diff --git a/net/net.c b/net/net.c index e8ff0662b8..f4404342f7 100644 --- 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; } }