Skip to content
Snippets Groups Projects
Commit e158665c authored by Siva Durga Prasad Paladugu's avatar Siva Durga Prasad Paladugu Committed by Michal Simek
Browse files

arm: zynq: correct the argument to lldiv


Typecast the argument with unsigned long long
for proper calculation of lldiv

Signed-off-by: default avatarSiva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent d7e269cf
No related branches found
No related tags found
No related merge requests found
...@@ -110,7 +110,8 @@ void __udelay(unsigned long usec) ...@@ -110,7 +110,8 @@ void __udelay(unsigned long usec)
if (usec == 0) if (usec == 0)
return; return;
countticks = lldiv(gd->arch.timer_rate_hz * usec, 1000000); countticks = lldiv(((unsigned long long)gd->arch.timer_rate_hz * usec),
1000000);
/* decrementing timer */ /* decrementing timer */
timeend = readl(&timer_base->counter) - countticks; timeend = readl(&timer_base->counter) - countticks;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment