powerpc/e500mc: Remove dead L2 flushing code in idle_e500.S
authorScott Wood <scottwood@freescale.com>
Tue, 7 Apr 2015 03:00:38 +0000 (22:00 -0500)
committerScott Wood <scottwood@freescale.com>
Wed, 3 Jun 2015 02:37:19 +0000 (21:37 -0500)
This code can never be executed as it is only built when
CONFIG_PPC_E500MC is unset, but the only CPUs that have CPU_FTR_L2CSR
require CONFIG_PPC_E500MC and do not have the MSR/HID0-based nap
mechanism that this file uses.

Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/kernel/idle_e500.S

index 15448668988dd85a902b830fba8ef020c2557cb0..b9b6ef510be1ec366576a718423b6c319e8e4c06 100644 (file)
@@ -58,15 +58,6 @@ BEGIN_FTR_SECTION
        mtlr    r0
        lis     r3,HID0_NAP@h
 END_FTR_SECTION_IFSET(CPU_FTR_CAN_NAP)
-BEGIN_FTR_SECTION
-       msync
-       li      r7,L2CSR0_L2FL@l
-       mtspr   SPRN_L2CSR0,r7
-2:
-       mfspr   r7,SPRN_L2CSR0
-       andi.   r4,r7,L2CSR0_L2FL@l
-       bne     2b
-END_FTR_SECTION_IFSET(CPU_FTR_L2CSR|CPU_FTR_CAN_NAP)
 1:
        /* Go to NAP or DOZE now */
        mfspr   r4,SPRN_HID0