aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@mips.com>2019-02-01 20:43:21 -0500
committerPaul Burton <paul.burton@mips.com>2019-02-04 13:56:22 -0500
commitf7908a007e20fff3d666e0b98eae3b10afb7d533 (patch)
tree621aa1bd36ac83eec910ce0fec22ebea5303f4bf
parent6067d47e36f4a3aa691f7b1f91e438cd289ecb8f (diff)
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
-rw-r--r--arch/mips/mm/tlb-r4k.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/mips/mm/tlb-r4k.c b/arch/mips/mm/tlb-r4k.c
index ba76b0c11d38..9fff08eabe8f 100644
--- a/arch/mips/mm/tlb-r4k.c
+++ b/arch/mips/mm/tlb-r4k.c
@@ -108,9 +108,7 @@ EXPORT_SYMBOL(local_flush_tlb_all);
108 these entries, we just bump the asid. */ 108 these entries, we just bump the asid. */
109void local_flush_tlb_mm(struct mm_struct *mm) 109void local_flush_tlb_mm(struct mm_struct *mm)
110{ 110{
111 preempt_disable();
112 drop_mmu_context(mm); 111 drop_mmu_context(mm);
113 preempt_enable();
114} 112}
115 113
116void local_flush_tlb_range(struct vm_area_struct *vma, unsigned long start, 114void local_flush_tlb_range(struct vm_area_struct *vma, unsigned long start,