Skip to content

Commit f7908a0

Browse files
committed
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
1 parent 6067d47 commit f7908a0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/mips/mm/tlb-r4k.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ EXPORT_SYMBOL(local_flush_tlb_all);
108108
these entries, we just bump the asid. */
109109
void local_flush_tlb_mm(struct mm_struct *mm)
110110
{
111-
preempt_disable();
112111
drop_mmu_context(mm);
113-
preempt_enable();
114112
}
115113

116114
void local_flush_tlb_range(struct vm_area_struct *vma, unsigned long start,

0 commit comments

Comments
 (0)