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
committerDan Willemsen <dwillemsen@nvidia.com>2012-03-22 23:49:27 -0700
commit8cff9c82526b2ee1275e4526ee64bc6e923b0984 (patch)
tree4428edf7b1bbbe9cad084c530683c41bb31db58c /arch/arm/mach-tegra/sleep.S
parent39dc9e7c3b98a7909a427aa29303b387ffba7e18 (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> Rebase-Id: R79c9865c168b8fde6a02b1ddce1bd98400e19161
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 2dab27ce7180..135853100aeb 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