]> err.no Git - linux-2.6/commitdiff
[ARM] 3955/1: AT91: Clear timer interrupt when resuming
authorAndrew Victor <andrew@sanpeople.com>
Fri, 1 Dec 2006 09:15:04 +0000 (10:15 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 1 Dec 2006 13:53:55 +0000 (13:53 +0000)
Attached is a patch for at91rm9200_time.c which removes
the 'BUG: soft lockup detected on CPU#0!' message when
exiting suspended states.

Patch from Savin Zlobec

Signed-off-by: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-at91rm9200/at91rm9200_time.c

index 8e9c049c8b7c3d6c8b30cec0ca9831e5795af6a9..b999e192a7e9c22719cd83c8cdc254584dc299df 100644 (file)
@@ -101,6 +101,9 @@ void at91rm9200_timer_reset(void)
        /* Set Period Interval timer */
        at91_sys_write(AT91_ST_PIMR, LATCH);
 
+       /* Clear any pending interrupts */
+       (void) at91_sys_read(AT91_ST_SR);
+
        /* Enable Period Interval Timer interrupt */
        at91_sys_write(AT91_ST_IER, AT91_ST_PITS);
 }