summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/suspend.c
diff options
context:
space:
mode:
authorAndrei Warkentin <andreiw@motorola.com>2010-11-19 16:10:08 -0600
committerColin Cross <ccross@android.com>2010-12-02 14:38:24 -0800
commit5e4f94d29f7e030f69039b40a0f4494654542330 (patch)
treecf7f4a84607162bb579682620574f2aa95406d89 /arch/arm/mach-tegra/suspend.c
parent3d8c542754a0ac192eba87726aa4462fbde43853 (diff)
ARM: tegra: suspend: Fix build with CONFIG_CACHE_L2X0=n
Change-Id: I85c3a98d0c9f61153969649bb9de20a9158e9ee4 Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
Diffstat (limited to 'arch/arm/mach-tegra/suspend.c')
-rw-r--r--arch/arm/mach-tegra/suspend.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/suspend.c b/arch/arm/mach-tegra/suspend.c
index af3252401256..146b93a014f3 100644
--- a/arch/arm/mach-tegra/suspend.c
+++ b/arch/arm/mach-tegra/suspend.c
@@ -458,13 +458,17 @@ static void tegra_suspend_dram(bool do_lp0)
suspend_cpu_complex();
flush_cache_all();
+#ifdef CONFIG_CACHE_L2X0
l2x0_shutdown();
+#endif
__cortex_a9_save(mode);
restore_cpu_complex();
writel(orig, evp_reset);
+#ifdef CONFIG_CACHE_L2X0
l2x0_restart();
+#endif
if (!do_lp0) {
memcpy(iram_code, iram_save, iram_save_size);