diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2018-11-07 05:35:20 +0300 |
---|---|---|
committer | Ley Foon Tan <ley.foon.tan@intel.com> | 2019-03-07 00:29:35 +0300 |
commit | b6a10463438d8775aa6aa09ece46e8af14345712 (patch) | |
tree | 8925a256ffb05de98d0237c0515de9ae78d1ee9f /arch | |
parent | 737a3fa20f2e195d94d9501ab5d76c29194d8176 (diff) | |
download | linux-b6a10463438d8775aa6aa09ece46e8af14345712.tar.xz |
nios2: User address TLB flush break after finding the matching entry
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/nios2/mm/tlb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/nios2/mm/tlb.c b/arch/nios2/mm/tlb.c index 2469f88ef7f3..2e49993d29ef 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); |