From 5e4f94d29f7e030f69039b40a0f4494654542330 Mon Sep 17 00:00:00 2001 From: Andrei Warkentin Date: Fri, 19 Nov 2010 16:10:08 -0600 Subject: [PATCH] ARM: tegra: suspend: Fix build with CONFIG_CACHE_L2X0=n Change-Id: I85c3a98d0c9f61153969649bb9de20a9158e9ee4 Signed-off-by: Andrei Warkentin --- arch/arm/mach-tegra/suspend.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.34.1