projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cd1b57
)
ARM:zynq: Correct __udelay to use lldiv
author
Tom Rini
<trini@ti.com>
Thu, 5 Dec 2013 19:48:36 +0000
(14:48 -0500)
committer
Tom Rini
<trini@ti.com>
Fri, 13 Dec 2013 14:16:20 +0000
(09:16 -0500)
Cc: Michal Simek <monstr@monstr.eu>
Signed-off-by: Tom Rini <trini@ti.com>
arch/arm/cpu/armv7/zynq/timer.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/armv7/zynq/timer.c
b/arch/arm/cpu/armv7/zynq/timer.c
index 636322a8e5728de647c8a333b0a2feb9b1b730ed..2be253c2c3d5ec29d2e7a50da9542701728d0340 100644
(file)
--- 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;