ARM: tegra: suspend: Fix build with CONFIG_CACHE_L2X0=n
authorAndrei Warkentin <andreiw@motorola.com>
Fri, 19 Nov 2010 22:10:08 +0000 (16:10 -0600)
committerColin Cross <ccross@android.com>
Thu, 2 Dec 2010 22:38:24 +0000 (14:38 -0800)
Change-Id: I85c3a98d0c9f61153969649bb9de20a9158e9ee4
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
arch/arm/mach-tegra/suspend.c

index af325240125673d0eb76db18bf6bde5c1b46ded2..146b93a014f389ae928dba604dbeee47102ab545 100644 (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);