From: Andrei Warkentin Date: Fri, 19 Nov 2010 22:10:08 +0000 (-0600) Subject: ARM: tegra: suspend: Fix build with CONFIG_CACHE_L2X0=n X-Git-Tag: firefly_0821_release~9833^2~96^2~2 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=5e4f94d29f7e030f69039b40a0f4494654542330;p=firefly-linux-kernel-4.4.55.git ARM: tegra: suspend: Fix build with CONFIG_CACHE_L2X0=n Change-Id: I85c3a98d0c9f61153969649bb9de20a9158e9ee4 Signed-off-by: Andrei Warkentin --- 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);