diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-09-01 06:57:59 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-09-20 18:33:47 -0400 |
commit | 8e6f83bbdf770014c070c5a41c8e89617cb2a66b (patch) | |
tree | c8c66226bd52a6b26229f0a95bf45851bef8974b /arch/arm | |
parent | abda1bd5f4e04054ce083c298fcd68a743e9df03 (diff) |
ARM: pm: add L2 cache cleaning for suspend
We need to ensure that state is pushed out from the L2 cache when
suspending so that the resume paths can access their data before the
MMU and caches have been re-initialized. Add the necessary calls to
__cpu_suspend_save().
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/kernel/suspend.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/kernel/suspend.c b/arch/arm/kernel/suspend.c index 2d60f1903206..93a22d282c16 100644 --- a/arch/arm/kernel/suspend.c +++ b/arch/arm/kernel/suspend.c | |||
@@ -28,6 +28,9 @@ void __cpu_suspend_save(u32 *ptr, u32 ptrsz, u32 sp, u32 *save_ptr) | |||
28 | cpu_do_suspend(ptr); | 28 | cpu_do_suspend(ptr); |
29 | 29 | ||
30 | flush_cache_all(); | 30 | flush_cache_all(); |
31 | outer_clean_range(*save_ptr, *save_ptr + ptrsz); | ||
32 | outer_clean_range(virt_to_phys(save_ptr), | ||
33 | virt_to_phys(save_ptr) + sizeof(*save_ptr)); | ||
31 | } | 34 | } |
32 | 35 | ||
33 | /* | 36 | /* |