summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/sleep.S
diff options
context:
space:
mode:
authorVarun Wadekar <vwadekar@nvidia.com>2011-12-06 17:30:03 +0530
committerVarun Wadekar <vwadekar@nvidia.com>2011-12-14 11:08:28 +0530
commitf05a661e2247076a0c0e5a09ee8c4397b0de855e (patch)
treefee4ad41cbb53d97c3e446abd9efc4d968a700db /arch/arm/mach-tegra/sleep.S
parentc6f030eb7950f70a838f00e342ab72e895284263 (diff)
arm: tegra: pm: preserve r4 - r11 across a suspend
Make cpu_suspend()..return function preserve r4 to r11 across a suspend cycle. This is in preparation of relieving platform support code from this task. Original commit: 5fa94c812c0001ac7c3d8868e956ec514734a352 Bug 911002 Change-Id: If33c32ba7de449288eac8f83cb0898ba77a46333 Acked-by: Frank Hofmann <frank.hofmann@tomtom.com> Tested-by: Kevin Hilman <khilman@ti.com> Acked-by: Jean Pihet <j-pihet@ti.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/sleep.S')
-rw-r--r--arch/arm/mach-tegra/sleep.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/sleep.S b/arch/arm/mach-tegra/sleep.S
index e129c571d52c..38e5f69a3437 100644
--- a/arch/arm/mach-tegra/sleep.S
+++ b/arch/arm/mach-tegra/sleep.S
@@ -202,12 +202,13 @@ tegra_phys_sleep_sp:
* r3 = virtual return function
* Output:
* sp is decremented to allocate space for CPU state on stack
- * r0-r3,r8-r10,lr corrupted
+ * r0-r3,ip,lr corrupted
*/
.align L1_CACHE_SHIFT
ENTRY(tegra_cpu_suspend)
#if USE_TEGRA_CPU_SUSPEND
stmfd sp!, {r3}
+ stmfd sp!, {r4 - r11}
mov r9, lr
#ifdef MULTI_CPU
mov32 r10, processor