From 322bd187b95c14d26343636f3f7ea41a6ac73bcd Mon Sep 17 00:00:00 2001 From: Tony Lindgren Date: Mon, 25 Sep 2006 13:33:46 +0300 Subject: [PATCH] ARM: OMAP: Sync timer32k code with mainline Sync timer32k code with mainline Signed-off-by: Tony Lindgren --- arch/arm/plat-omap/timer32k.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/plat-omap/timer32k.c b/arch/arm/plat-omap/timer32k.c index 50569bf5f44..cf6df3378d3 100644 --- a/arch/arm/plat-omap/timer32k.c +++ b/arch/arm/plat-omap/timer32k.c @@ -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); } -- 2.41.1