diff options
Diffstat (limited to 'arch/powerpc/mm/mmu_context_book3s64.c')
-rw-r--r-- | arch/powerpc/mm/mmu_context_book3s64.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/arch/powerpc/mm/mmu_context_book3s64.c b/arch/powerpc/mm/mmu_context_book3s64.c index f3d4b4a0e561..39e9ef0eb78b 100644 --- a/arch/powerpc/mm/mmu_context_book3s64.c +++ b/arch/powerpc/mm/mmu_context_book3s64.c | |||
@@ -273,15 +273,7 @@ void arch_exit_mmap(struct mm_struct *mm) | |||
273 | #ifdef CONFIG_PPC_RADIX_MMU | 273 | #ifdef CONFIG_PPC_RADIX_MMU |
274 | void radix__switch_mmu_context(struct mm_struct *prev, struct mm_struct *next) | 274 | void radix__switch_mmu_context(struct mm_struct *prev, struct mm_struct *next) |
275 | { | 275 | { |
276 | 276 | mtspr(SPRN_PID, next->context.id); | |
277 | if (cpu_has_feature(CPU_FTR_POWER9_DD1)) { | 277 | isync(); |
278 | isync(); | ||
279 | mtspr(SPRN_PID, next->context.id); | ||
280 | isync(); | ||
281 | asm volatile(PPC_INVALIDATE_ERAT : : :"memory"); | ||
282 | } else { | ||
283 | mtspr(SPRN_PID, next->context.id); | ||
284 | isync(); | ||
285 | } | ||
286 | } | 278 | } |
287 | #endif | 279 | #endif |