From: Nicholas Piggin Date: Wed, 7 Nov 2018 02:35:20 +0000 (+0800) Subject: nios2: User address TLB flush break after finding the matching entry X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b6a10463438d8775aa6aa09ece46e8af14345712;p=linux.git nios2: User address TLB flush break after finding the matching entry Signed-off-by: Nicholas Piggin Signed-off-by: Ley Foon Tan --- diff --git a/arch/nios2/mm/tlb.c b/arch/nios2/mm/tlb.c index 2469f88ef7f3e..2e49993d29efc 100644 --- a/arch/nios2/mm/tlb.c +++ b/arch/nios2/mm/tlb.c @@ -76,6 +76,11 @@ void flush_tlb_one_pid(unsigned long addr, unsigned long mmu_pid) WRCTL(CTL_TLBMISC, tlbmisc); WRCTL(CTL_PTEADDR, pteaddr_invalid(addr)); WRCTL(CTL_TLBACC, 0); + /* + * There should be only a single entry that maps a + * particular {address,pid} so break after a match. + */ + break; } WRCTL(CTL_TLBMISC, org_misc);