ARM: tegra: power: Flush cache just before cpu shutdown
[linux-3.10.git] / arch / arm / mach-tegra / hotplug.c
index 682e0ea..2d0f7bd 100644 (file)
@@ -41,9 +41,6 @@ void tegra_cpu_die(unsigned int cpu)
 {
        cpu = cpu_logical_map(cpu);
 
-       /* Flush the L1 data cache. */
-       flush_cache_all();
-
 #ifndef CONFIG_ARCH_TEGRA_2x_SOC
        /* Disable GIC CPU interface for this CPU. */
        tegra_gic_cpu_disable();
@@ -55,6 +52,9 @@ void tegra_cpu_die(unsigned int cpu)
        tegra_gic_pass_through_disable();
 #endif
 
+       /* Flush the L1 data cache. */
+       flush_cache_all();
+
        /* Shut down the current CPU. */
        tegra_hotplug_shutdown();