diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2006-06-22 10:30:53 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-06-22 10:30:53 +0100 |
commit | f869afab8f36c5f8561557f74b4b9846719092da (patch) | |
tree | 6a23d7981a3b06b9cd40ad99c1543d22f6a1d528 /arch/arm/mach-ixp4xx | |
parent | 84b61f6d3ad8a5761e61d83076588f64a289a574 (diff) | |
download | blackbird-op-linux-f869afab8f36c5f8561557f74b4b9846719092da.tar.gz blackbird-op-linux-f869afab8f36c5f8561557f74b4b9846719092da.zip |
[ARM] 3616/1: fix timer handler wrap logic for a number of platforms
Patch from Lennert Buytenhek
A couple of platforms aren't using the right comparison type in their
timer interrupt handlers (as we're comparing two wrapping timestamps,
we need a bmi/bpl-type comparison, not an unsigned comparison) -- this
patch fixes them up.
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-ixp4xx')
-rw-r--r-- | arch/arm/mach-ixp4xx/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-ixp4xx/common.c b/arch/arm/mach-ixp4xx/common.c index 00b761ff0f9c..bf25a76e9bdf 100644 --- a/arch/arm/mach-ixp4xx/common.c +++ b/arch/arm/mach-ixp4xx/common.c @@ -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; } |