MIPS: mm: Remove redundant preempt_disable in local_flush_tlb_mm()
authorPaul Burton <paul.burton@mips.com>
Sat, 2 Feb 2019 01:43:21 +0000 (01:43 +0000)
committerPaul Burton <paul.burton@mips.com>
Mon, 4 Feb 2019 18:56:22 +0000 (10:56 -0800)
commitf7908a007e20fff3d666e0b98eae3b10afb7d533
tree621aa1bd36ac83eec910ce0fec22ebea5303f4bf
parent6067d47e36f4a3aa691f7b1f91e438cd289ecb8f
MIPS: mm: Remove redundant preempt_disable in local_flush_tlb_mm()

The r4k variant of local_flush_tlb_mm() wraps its call to
drop_mmu_context() with a preempt_disable() & preempt_enable() pair, but
this is redundant since drop_mmu_context() disables interrupts and from
Documentation/preempt-locking.txt:

  Note that you do not need to explicitly prevent preemption if you are
  holding any locks or interrupts are disabled, since preemption is
  implicitly disabled in those cases.

Remove the redundant preempt_disable() & preempt_enable() calls.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
arch/mips/mm/tlb-r4k.c