]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: pm: convert some assembly to C
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 1 Sep 2011 10:52:33 +0000 (11:52 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 4 Sep 2011 10:09:42 +0000 (11:09 +0100)
commit451a30406e9416c73bbe0beee209779d573c6547
treebe5ebd0390a408fbe3162647801bc239db5de01f
parent59ae66778e029675e2dc6a4705ab47194cc30296
ARM: pm: convert some assembly to C

Convert some of the sleep.S guts to C code, which makes it easier to
use our macros and to add L2 cache handling.  We provide a helper
function, __cpu_suspend_save(), which deals with saving the common
state, setting up for resume, and flushing caches.

The remainder left as assembly code is the saving of the CPU general
purpose registers, and allocating space on the stack to save the CPU
specific registers and resume state.

Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/proc-fns.h
arch/arm/kernel/sleep.S
arch/arm/kernel/suspend.c