1
0
Fork 0

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
hifive-unleashed-5.1
Paul Burton 2019-02-02 01:43:21 +00:00
parent 6067d47e36
commit f7908a007e
No known key found for this signature in database
GPG Key ID: 3EA79FACB57500DD
1 changed files with 0 additions and 2 deletions

View File

@ -108,9 +108,7 @@ EXPORT_SYMBOL(local_flush_tlb_all);
these entries, we just bump the asid. */
void local_flush_tlb_mm(struct mm_struct *mm)
{
preempt_disable();
drop_mmu_context(mm);
preempt_enable();
}
void local_flush_tlb_range(struct vm_area_struct *vma, unsigned long start,