diff options
Diffstat (limited to 'arch/powerpc/kernel/cpu_setup_power.S')
-rw-r--r-- | arch/powerpc/kernel/cpu_setup_power.S | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/powerpc/kernel/cpu_setup_power.S b/arch/powerpc/kernel/cpu_setup_power.S index 46733535cc0b..9c9b7411b28b 100644 --- a/arch/powerpc/kernel/cpu_setup_power.S +++ b/arch/powerpc/kernel/cpu_setup_power.S | |||
@@ -137,15 +137,11 @@ __init_HFSCR: | |||
137 | /* | 137 | /* |
138 | * Clear the TLB using the specified IS form of tlbiel instruction | 138 | * Clear the TLB using the specified IS form of tlbiel instruction |
139 | * (invalidate by congruence class). P7 has 128 CCs., P8 has 512. | 139 | * (invalidate by congruence class). P7 has 128 CCs., P8 has 512. |
140 | * | ||
141 | * r3 = IS field | ||
142 | */ | 140 | */ |
143 | __init_tlb_power7: | 141 | __init_tlb_power7: |
144 | li r3,0xc00 /* IS field = 0b11 */ | ||
145 | _GLOBAL(__flush_tlb_power7) | ||
146 | li r6,128 | 142 | li r6,128 |
147 | mtctr r6 | 143 | mtctr r6 |
148 | mr r7,r3 /* IS field */ | 144 | li r7,0xc00 /* IS field = 0b11 */ |
149 | ptesync | 145 | ptesync |
150 | 2: tlbiel r7 | 146 | 2: tlbiel r7 |
151 | addi r7,r7,0x1000 | 147 | addi r7,r7,0x1000 |
@@ -154,11 +150,9 @@ _GLOBAL(__flush_tlb_power7) | |||
154 | 1: blr | 150 | 1: blr |
155 | 151 | ||
156 | __init_tlb_power8: | 152 | __init_tlb_power8: |
157 | li r3,0xc00 /* IS field = 0b11 */ | ||
158 | _GLOBAL(__flush_tlb_power8) | ||
159 | li r6,512 | 153 | li r6,512 |
160 | mtctr r6 | 154 | mtctr r6 |
161 | mr r7,r3 /* IS field */ | 155 | li r7,0xc00 /* IS field = 0b11 */ |
162 | ptesync | 156 | ptesync |
163 | 2: tlbiel r7 | 157 | 2: tlbiel r7 |
164 | addi r7,r7,0x1000 | 158 | addi r7,r7,0x1000 |