diff options
author | Tetsuyuki Kobayashi <koba@kmckk.co.jp> | 2012-06-25 02:37:27 +0000 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2012-09-24 13:17:24 -0500 |
commit | 1389f98fced3651ece415a6011ccbdfac3a52286 (patch) | |
tree | 65799cf6e6ccfadce8154ae5be97e0f737614659 /net | |
parent | 46c07bcf12a7d6478b5e2f3e4b4c961d84428c6c (diff) | |
download | u-boot-imx-1389f98fced3651ece415a6011ccbdfac3a52286.zip u-boot-imx-1389f98fced3651ece415a6011ccbdfac3a52286.tar.gz u-boot-imx-1389f98fced3651ece415a6011ccbdfac3a52286.tar.bz2 |
net: bugfix: NetSetTimeout assumes CONFIG_SYS_HZ=1000
NetSetTimeout sets incorrect value to timeDelta when CONFIG_SYS_HZ != 1000.
Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Diffstat (limited to 'net')
-rw-r--r-- | net/net.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } } |