ARM: l2c: remove unnecessary call to outer_flush_all()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 15 Mar 2014 16:47:45 +0000 (16:47 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 22 May 2014 15:38:31 +0000 (16:38 +0100)
outer_disable() is defined to safely turn the L2 cache off without data
loss: this means that outer_flush_all() should never be called unless
you need to implement some special L2 cache disabling, and even then
only from your replacement L2 cache disable function.

Acked-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-prima2/pm.c

index c4525a88e5da87bb88d60e0ecc6bd920ba2fbc17..96e9bc1021170108682b1598119e3ded015e4a08 100644 (file)
@@ -71,7 +71,6 @@ static int sirfsoc_pm_enter(suspend_state_t state)
        case PM_SUSPEND_MEM:
                sirfsoc_pre_suspend_power_off();
 
-               outer_flush_all();
                outer_disable();
                /* go zzz */
                cpu_suspend(0, sirfsoc_finish_suspend);