diff mbox

[U-Boot,2/5] ARM:zynq: Correct __udelay to use lldiv

Message ID 1386272919-22615-2-git-send-email-trini@ti.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Tom Rini Dec. 5, 2013, 7:48 p.m. UTC
Cc: Michal Simek <monstr@monstr.eu>
Signed-off-by: Tom Rini <trini@ti.com>
---
 arch/arm/cpu/armv7/zynq/timer.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Tom Rini Dec. 16, 2013, 2:16 p.m. UTC | #1
On Thu, Dec 05, 2013 at 02:48:36PM -0500, Tom Rini wrote:

> Cc: Michal Simek <monstr@monstr.eu>
> Signed-off-by: Tom Rini <trini@ti.com>
> 
> ---
> arch/arm/cpu/armv7/zynq/timer.c |    3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Applied to u-boot/master, thanks!
diff mbox

Patch

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;