projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
737a3fa
)
nios2: User address TLB flush break after finding the matching entry
author
Nicholas Piggin
<npiggin@gmail.com>
Wed, 7 Nov 2018 02:35:20 +0000
(10:35 +0800)
committer
Ley Foon Tan
<ley.foon.tan@intel.com>
Wed, 6 Mar 2019 21:29:35 +0000
(
05:29
+0800)
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
arch/nios2/mm/tlb.c
patch
|
blob
|
history
diff --git
a/arch/nios2/mm/tlb.c
b/arch/nios2/mm/tlb.c
index
2469f88
..
2e49993
100644
(file)
--- 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);