diff options
author | Andrew Victor <andrew@sanpeople.com> | 2006-12-01 04:15:04 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-12-01 08:53:55 -0500 |
commit | d100f25956e8626afeafbb38558ca8c58df1cb6b (patch) | |
tree | 9f51f0bf1cef5d20ad0f9722d77db97b60a82ef0 /arch/arm/mach-at91rm9200/at91rm9200_time.c | |
parent | 86ad76bb2db7029343f681359c4b328fd8c36ae8 (diff) |
[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 <andrew@sanpeople.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-at91rm9200/at91rm9200_time.c')
-rw-r--r-- | arch/arm/mach-at91rm9200/at91rm9200_time.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-at91rm9200/at91rm9200_time.c b/arch/arm/mach-at91rm9200/at91rm9200_time.c index 8e9c049c8b7c..b999e192a7e9 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) | |||
101 | /* Set Period Interval timer */ | 101 | /* Set Period Interval timer */ |
102 | at91_sys_write(AT91_ST_PIMR, LATCH); | 102 | at91_sys_write(AT91_ST_PIMR, LATCH); |
103 | 103 | ||
104 | /* Clear any pending interrupts */ | ||
105 | (void) at91_sys_read(AT91_ST_SR); | ||
106 | |||
104 | /* Enable Period Interval Timer interrupt */ | 107 | /* Enable Period Interval Timer interrupt */ |
105 | at91_sys_write(AT91_ST_IER, AT91_ST_PITS); | 108 | at91_sys_write(AT91_ST_IER, AT91_ST_PITS); |
106 | } | 109 | } |