Skip to content

Commit

Permalink
[ARM] 3955/1: AT91: Clear timer interrupt when resuming
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Victor authored and Russell King committed Dec 1, 2006
1 parent 86ad76b commit d100f25
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm/mach-at91rm9200/at91rm9200_time.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d100f25

Please sign in to comment.