From: Andrew Victor Date: Fri, 1 Dec 2006 09:15:04 +0000 (+0100) Subject: [ARM] 3955/1: AT91: Clear timer interrupt when resuming X-Git-Tag: upstream/snapshot3+hdmi~36573^2^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d100f25956e8626afeafbb38558ca8c58df1cb6b;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [ARM] 3955/1: AT91: Clear timer interrupt when resuming 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 Signed-off-by: Russell King --- diff --git a/arch/arm/mach-at91rm9200/at91rm9200_time.c b/arch/arm/mach-at91rm9200/at91rm9200_time.c index 8e9c049..b999e19 100644 --- a/arch/arm/mach-at91rm9200/at91rm9200_time.c +++ b/arch/arm/mach-at91rm9200/at91rm9200_time.c @@ -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); }