AT91: pm: use plain cpu_do_idle() for "wait for interrupt"
authorNicolas Ferre <nicolas.ferre@atmel.com>
Fri, 22 Oct 2010 15:53:39 +0000 (17:53 +0200)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 26 Oct 2010 09:32:48 +0000 (11:32 +0200)
commit8aeeda822fbfe7da2d4ea391a9757e9532796598
tree04b001427ac194ad070c7cd6ee89c23af0f125cc
parentbb413db591d53c29292868577068fa822b84da82
AT91: pm: use plain cpu_do_idle() for "wait for interrupt"

For power management at91_pm_enter() routine, use the cpu_do_idle() for a
rock solid "wait for interrupt" implementation.
For AT91SAM9 ARM 926 based chips, we can exceed the cache line length as
we can access RAM even while in self-refresh mode.
We keep plain access to CP15 for at91rm9200 as this feature is not
available: instructions have to be in a single cache line.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/mach-at91/pm.c
arch/arm/mach-at91/pm.h