mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
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>
This commit is contained in:
parent
46c07bcf12
commit
1389f98fce
1 changed files with 1 additions and 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue