ARM: tegra: suspend: Fix build with CONFIG_CACHE_L2X0=n

Change-Id: I85c3a98d0c9f61153969649bb9de20a9158e9ee4
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
This commit is contained in:
Andrei Warkentin
2010-11-19 16:10:08 -06:00
committed by Colin Cross
parent 3d8c542754
commit 5e4f94d29f

View File

@@ -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);