From: Tom Rini Date: Thu, 5 Dec 2013 19:48:36 +0000 (-0500) Subject: ARM:zynq: Correct __udelay to use lldiv X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=e83bab8403bf5c1cb81b5c0a749c50b917bc9fc3;p=u-boot.git ARM:zynq: Correct __udelay to use lldiv Cc: Michal Simek Signed-off-by: Tom Rini --- diff --git a/arch/arm/cpu/armv7/zynq/timer.c b/arch/arm/cpu/armv7/zynq/timer.c index 636322a8e5..2be253c2c3 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;