ARM: at91: implement the standby function for pm/cpuidle
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 24 Jan 2012 23:56:08 +0000 (00:56 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Fri, 3 Feb 2012 12:42:19 +0000 (13:42 +0100)
commit00482a4078f4ff0dd0638e7f2fd83e34cc402ff7
tree71bf0730b78d686385c7a44696dcb21a5f08c8bf
parentb59160f6c017bfe33d3483ed9a6120701644af8a
ARM: at91: implement the standby function for pm/cpuidle

This patch groups the self-refresh on/cpu_do_idle/self-refresh off into
a single 'standby' function.

The standby routine for rm9200 has been turned into an asm routine to have
a better control of the self refresh and to prevent a memory access when
running this code.

Draining the write buffer is done automatically when switching for the self
refresh on sam9, so the instruction is added to the rm9200 only.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/mach-at91/cpuidle.c
arch/arm/mach-at91/pm.c
arch/arm/mach-at91/pm.h