ARM:zynq: Correct __udelay to use lldiv

Cc: Michal Simek <monstr@monstr.eu>
Signed-off-by: Tom Rini <trini@ti.com>
master
Tom Rini 12 years ago
parent 2cd1b57220
commit e83bab8403
  1. 3
      arch/arm/cpu/armv7/zynq/timer.c

@ -107,8 +107,7 @@ void __udelay(unsigned long usec)
if (usec == 0)
return;
countticks = (u32) (((unsigned long long) TIMER_TICK_HZ * usec) /
1000000);
countticks = lldiv(TIMER_TICK_HZ * usec, 1000000);
/* decrementing timer */
timeend = readl(&timer_base->counter) - countticks;

Loading…
Cancel
Save