Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 058ccc34 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Michael Ellerman
Browse files

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: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 43ed84a8
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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 */