Commit 322bd187 authored by Tony Lindgren's avatar Tony Lindgren

ARM: OMAP: Sync timer32k code with mainline

Sync timer32k code with mainline
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 58bbb19f
......@@ -202,7 +202,8 @@ static inline irqreturn_t _omap_32k_timer_interrupt(int irq, void *dev_id,
omap_32k_timer_ack_irq();
now = omap_32k_sync_timer_read();
while (now - omap_32k_last_tick >= OMAP_32K_TICKS_PER_HZ) {
while ((signed long)(now - omap_32k_last_tick)
>= OMAP_32K_TICKS_PER_HZ) {
omap_32k_last_tick += OMAP_32K_TICKS_PER_HZ;
timer_tick(regs);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment