aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/mmu_context.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2017-07-24 14:27:59 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2017-08-23 22:27:44 +1000
commit058ccc3465d9b8fb34d59ca099a8a7ace1a62cdd (patch)
treeb383dfade92c249496b16de9d28f6b11c9ba36d5 /arch/powerpc/include/asm/mmu_context.h
parentpowerpc/mm: Move pgdir setting into a helper (diff)
downloadlinux-dev-058ccc3465d9b8fb34d59ca099a8a7ace1a62cdd.tar.xz
linux-dev-058ccc3465d9b8fb34d59ca099a8a7ace1a62cdd.zip
powerpc/mm: Avoid double irq save/restore in activate_mm
It calls switch_mm() which already does the irq save/restore these days. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/mmu_context.h')
-rw-r--r--arch/powerpc/include/asm/mmu_context.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/powerpc/include/asm/mmu_context.h b/arch/powerpc/include/asm/mmu_context.h
index 992123e4e7f6..fb99c27bbf5e 100644
--- a/arch/powerpc/include/asm/mmu_context.h
+++ b/arch/powerpc/include/asm/mmu_context.h
@@ -176,11 +176,7 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,
*/
static inline void activate_mm(struct mm_struct *prev, struct mm_struct *next)
{
- unsigned long flags;
-
- local_irq_save(flags);
switch_mm(prev, next, current);
- local_irq_restore(flags);
}
/* We don't currently use enter_lazy_tlb() for anything */