From: Tony Lindgren Date: Mon, 25 Sep 2006 10:33:46 +0000 (+0300) Subject: ARM: OMAP: Sync timer32k code with mainline X-Git-Tag: v2.6.18-omap1~41 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=322bd187b95c14d26343636f3f7ea41a6ac73bcd;p=linux-2.6-omap-h63xx.git ARM: OMAP: Sync timer32k code with mainline Sync timer32k code with mainline Signed-off-by: Tony Lindgren --- 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); }