Skip to content

Commit 2f4ecf6

Browse files
committed
ARC: mm: tlb flush optim: elide redundant uTLB invalidates for MMUv3
For MMUv3 (and prior) the flush_tlb_{range,mm,page} API use the MMU TLBWrite cmd which already nukes the entire uTLB, so NO need for additional IVUTLB cmd from utlb_invalidate() - hence this patch local_flush_tlb_all() is special since it uses a weaker TLBWriteNI cmd (prec commit) to shoot down JTLB, hence we retain the explicit uTLB flush Signed-off-by: Vineet Gupta <[email protected]>
1 parent 1355ea2 commit 2f4ecf6

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

arch/arc/mm/tlb.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,6 @@ void local_flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
339339
}
340340
}
341341

342-
utlb_invalidate();
343-
344342
local_irq_restore(flags);
345343
}
346344

@@ -369,8 +367,6 @@ void local_flush_tlb_kernel_range(unsigned long start, unsigned long end)
369367
start += PAGE_SIZE;
370368
}
371369

372-
utlb_invalidate();
373-
374370
local_irq_restore(flags);
375371
}
376372

@@ -391,7 +387,6 @@ void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long page)
391387

392388
if (asid_mm(vma->vm_mm, cpu) != MM_CTXT_NO_ASID) {
393389
tlb_entry_erase((page & PAGE_MASK) | hw_pid(vma->vm_mm, cpu));
394-
utlb_invalidate();
395390
}
396391

397392
local_irq_restore(flags);

0 commit comments

Comments
 (0)