diff options
author | Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> | 2014-02-12 21:38:35 +0530 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2014-02-19 09:41:22 +0100 |
commit | e158665c1e4c4665302f0d95e26b7c7e6b70a83c (patch) | |
tree | 2dc754e033f395eaa2e3dc34e2606684aef717a3 /arch/arm/cpu | |
parent | d7e269cfbdd5fe0bbc0961bcf89845484bf28de7 (diff) | |
download | u-boot-imx-e158665c1e4c4665302f0d95e26b7c7e6b70a83c.zip u-boot-imx-e158665c1e4c4665302f0d95e26b7c7e6b70a83c.tar.gz u-boot-imx-e158665c1e4c4665302f0d95e26b7c7e6b70a83c.tar.bz2 |
arm: zynq: correct the argument to lldiv
Typecast the argument with unsigned long long
for proper calculation of lldiv
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r-- | arch/arm/cpu/armv7/zynq/timer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/zynq/timer.c b/arch/arm/cpu/armv7/zynq/timer.c index 174e5a1..303dbcf 100644 --- a/arch/arm/cpu/armv7/zynq/timer.c +++ b/arch/arm/cpu/armv7/zynq/timer.c @@ -110,7 +110,8 @@ void __udelay(unsigned long usec) if (usec == 0) return; - countticks = lldiv(gd->arch.timer_rate_hz * usec, 1000000); + countticks = lldiv(((unsigned long long)gd->arch.timer_rate_hz * usec), + 1000000); /* decrementing timer */ timeend = readl(&timer_base->counter) - countticks; |