ARM:zynq: Correct __udelay to use lldiv
Cc: Michal Simek <monstr@monstr.eu> Signed-off-by: Tom Rini <trini@ti.com>
This commit is contained in:
parent
2cd1b57220
commit
e83bab8403
|
@ -107,8 +107,7 @@ void __udelay(unsigned long usec)
|
||||||
if (usec == 0)
|
if (usec == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
countticks = (u32) (((unsigned long long) TIMER_TICK_HZ * usec) /
|
countticks = lldiv(TIMER_TICK_HZ * usec, 1000000);
|
||||||
1000000);
|
|
||||||
|
|
||||||
/* decrementing timer */
|
/* decrementing timer */
|
||||||
timeend = readl(&timer_base->counter) - countticks;
|
timeend = readl(&timer_base->counter) - countticks;
|
||||||
|
|
Loading…
Reference in New Issue