]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1d36956b5702685a3b77c128cc13a72204aef08a
tree71bf0730b78d686385c7a44696dcb21a5f08c8bf
parent31af21608e07ab78c52d70e3d43036ac0a20f0cf
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