Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/e500mc: Remove dead L2 flushing code in idle_e500.S

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>

-9
-9
arch/powerpc/kernel/idle_e500.S
··· 58 58 mtlr r0 59 59 lis r3,HID0_NAP@h 60 60 END_FTR_SECTION_IFSET(CPU_FTR_CAN_NAP) 61 - BEGIN_FTR_SECTION 62 - msync 63 - li r7,L2CSR0_L2FL@l 64 - mtspr SPRN_L2CSR0,r7 65 - 2: 66 - mfspr r7,SPRN_L2CSR0 67 - andi. r4,r7,L2CSR0_L2FL@l 68 - bne 2b 69 - END_FTR_SECTION_IFSET(CPU_FTR_L2CSR|CPU_FTR_CAN_NAP) 70 61 1: 71 62 /* Go to NAP or DOZE now */ 72 63 mfspr r4,SPRN_HID0