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)
commit307dd4328073d997d658e0096ce9dce0b27b6016
tree04b001427ac194ad070c7cd6ee89c23af0f125cc
parentb8667404e4afec57379a5a9968a68b46a5b0c3b7
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