diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2018-11-05 03:00:15 +0100 |
---|---|---|
committer | Ley Foon Tan <ley.foon.tan@intel.com> | 2019-03-06 22:29:35 +0100 |
commit | 195568a10a264a733ec7151a657ab054a0af768f (patch) | |
tree | a2db0ec2f201c8fd492d4807ecb89e0c8aa44707 /arch/nios2/mm/fault.c | |
parent | nios2: update_mmu_cache clear the old entry from the TLB (diff) | |
download | linux-195568a10a264a733ec7151a657ab054a0af768f.tar.xz linux-195568a10a264a733ec7151a657ab054a0af768f.zip |
nios2: flush_tlb_page use PID based flush
flush_tlb_page is for flushing user pages, so it should not be using
flush_tlb_one (which flushes all pages).
This patch implements it with the flush_tlb_range, which is a user
flush that does the right thing.
flush_tlb_one is made static to mm/tlb.c because it's a bit confusing.
It is used in do_page_fault to flush the kernel non-linear mappings,
so that is replaced with flush_tlb_kernel_page. The end result is that
functionality is identical.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Diffstat (limited to 'arch/nios2/mm/fault.c')
-rw-r--r-- | arch/nios2/mm/fault.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nios2/mm/fault.c b/arch/nios2/mm/fault.c index 24fd84cf6006..cf76fa3f457b 100644 --- a/arch/nios2/mm/fault.c +++ b/arch/nios2/mm/fault.c @@ -271,7 +271,7 @@ vmalloc_fault: if (!pte_present(*pte_k)) goto no_context; - flush_tlb_one(address); + flush_tlb_kernel_page(address); return; } } |