Skip to content

Commit 86d6336

Browse files
author
Scott Wood
committed
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 <[email protected]>
1 parent c89ca8a commit 86d6336

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

arch/powerpc/kernel/idle_e500.S

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,6 @@ BEGIN_FTR_SECTION
5858
mtlr r0
5959
lis r3,HID0_NAP@h
6060
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)
7061
1:
7162
/* Go to NAP or DOZE now */
7263
mfspr r4,SPRN_HID0

0 commit comments

Comments
 (0)