ARM: Tegra: T148: Fix L2 flush upon cluster PG
Antti P Miettinen [Mon, 25 Mar 2013 05:28:46 +0000 (07:28 +0200)]
Let's not clobber aux register value before checking it.

Change-Id: I941966a417d58d100acc14430c87f31c27766765
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/212462
Reviewed-by: Bo Yan <byan@nvidia.com>

arch/arm/mach-tegra/sleep.S

index 0fa40cc..54e4143 100644 (file)
@@ -299,8 +299,8 @@ tegra_shut_off_mmu:
 #ifdef CONFIG_ARCH_TEGRA_14x_SOC
        /* need to flush the L2 */
        ldr     r2, [r1, #L2X0_AUX_CTRL]
-       mov     r2, #0xff
        tst     r2, #(1 << 16)                  @ associativity
+       mov     r2, #0xff
        orrne   r2, #0xff00
        str     r2, [r1, #L2X0_CLEAN_INV_WAY]
 1:     ldr     r3, [r1, #L2X0_CLEAN_INV_WAY]