ARC: mm: tlb flush optim: elide redundant uTLB invalidates for MMUv3
authorVineet Gupta <vgupta@synopsys.com>
Tue, 10 Sep 2019 22:38:10 +0000 (15:38 -0700)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 28 Oct 2019 19:12:32 +0000 (12:12 -0700)
commit2f4ecf68a048de44d72157d637bf9cbbbdb357b0
tree3fa9f88b2560cbee732dd41933d2afc33114c0a1
parent1355ea2e603d76af6b1381873e37b1aec22a18a0
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 <vgupta@synopsys.com>
arch/arc/mm/tlb.c