]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - arch/arm/mach-ixp4xx/common.c
[ARM] 3616/1: fix timer handler wrap logic for a number of platforms
[linux-2.6.git] / arch / arm / mach-ixp4xx / common.c
index 00b761ff0f9ce75b76fcf60217919eb1acbf308b..bf25a76e9bdffcd78fdf314301e983d118eae0c8 100644 (file)
@@ -276,7 +276,7 @@ static irqreturn_t ixp4xx_timer_interrupt(int irq, void *dev_id, struct pt_regs
        /*
         * Catch up with the real idea of time
         */
-       while ((*IXP4XX_OSTS - last_jiffy_time) > LATCH) {
+       while ((signed long)(*IXP4XX_OSTS - last_jiffy_time) >= LATCH) {
                timer_tick(regs);
                last_jiffy_time += LATCH;
        }