summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorTetsuyuki Kobayashi <koba@kmckk.co.jp>2012-06-25 02:37:27 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2012-09-24 13:17:24 -0500
commit1389f98fced3651ece415a6011ccbdfac3a52286 (patch)
tree65799cf6e6ccfadce8154ae5be97e0f737614659 /net
parent46c07bcf12a7d6478b5e2f3e4b4c961d84428c6c (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/net.c b/net/net.c
index e8ff0662b88..f4404342f7c 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;
}
}