Commit d62becf0 authored by Adam Wujek's avatar Adam Wujek

lib/usleep: fix hangs in usleep_init on slow CPUs

Signed-off-by: 's avatarAdam Wujek <adam.wujek@creotech.pl>
parent aaab1542
......@@ -26,7 +26,7 @@ static int verify_lpj(int lpj)
/* wait for the beginning of a tick */
j = timer_get_tics() + 1;
while (timer_get_tics() != j)
while (timer_get_tics() < j)
;
__delay(lpj);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment