powerpc/mm: Avoid double irq save/restore in activate_mm
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 24 Jul 2017 04:27:59 +0000 (14:27 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 23 Aug 2017 12:27:44 +0000 (22:27 +1000)
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>
arch/powerpc/include/asm/mmu_context.h

index 992123e4e7f6b5f5180232a87d893a0236187298..fb99c27bbf5ed1cc2c45b189099d0203f9303a6c 100644 (file)
@@ -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 */