mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-13 14:06:07 -04: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
@ -652,7 +652,7 @@ NetSetTimeout(ulong iv, thand_f *f)
|
|||||||
"--- NetLoop timeout handler set (%p)\n", f);
|
"--- NetLoop timeout handler set (%p)\n", f);
|
||||||
timeHandler = f;
|
timeHandler = f;
|
||||||
timeStart = get_timer(0);
|
timeStart = get_timer(0);
|
||||||
timeDelta = iv;
|
timeDelta = iv * CONFIG_SYS_HZ / 1000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user