summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2013-12-05 14:48:36 -0500
committerTom Rini <trini@ti.com>2013-12-13 09:16:20 -0500
commite83bab8403bf5c1cb81b5c0a749c50b917bc9fc3 (patch)
tree4389ede103f5b5b0fa8d3d0ff06fe8b1665616d5 /arch/arm/cpu/armv7
parent2cd1b57220697ac47e4a63fb6a0a79eda2217f9d (diff)
downloadu-boot-imx-e83bab8403bf5c1cb81b5c0a749c50b917bc9fc3.zip
u-boot-imx-e83bab8403bf5c1cb81b5c0a749c50b917bc9fc3.tar.gz
u-boot-imx-e83bab8403bf5c1cb81b5c0a749c50b917bc9fc3.tar.bz2
ARM:zynq: Correct __udelay to use lldiv
Cc: Michal Simek <monstr@monstr.eu> Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'arch/arm/cpu/armv7')
-rw-r--r--arch/arm/cpu/armv7/zynq/timer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv7/zynq/timer.c b/arch/arm/cpu/armv7/zynq/timer.c
index 636322a..2be253c 100644
--- a/arch/arm/cpu/armv7/zynq/timer.c
+++ b/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;