Message ID | 20221009134503.18783-1-tjytimi@163.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 1b52861f0e04da43013f88dd56464b5719a974e3 |
Delegated to: | Palmer Dabbelt |
Headers | show |
Series | [v3] riscv: support update_mmu_tlb() | expand |
On Sun, 9 Oct 2022 21:45:03 +0800, Jinyu Tang wrote: > Add macro definition to support update_mmu_tlb() for riscv, > this function is from commit:7df676974359 ("mm/memory.c:Update > local TLB if PTE entry exists"). > > update_mmu_tlb() is used when a thread notice that other cpu thread > has handled the fault and changed the PTE. For MIPS, it's worth to > do that,this cpu thread will trap in tlb fault again otherwise. > > [...] Applied, thanks! [1/1] riscv: support update_mmu_tlb() https://git.kernel.org/palmer/c/1b52861f0e04 Best regards,
diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h index 7ec936910a96..c61ae83aadee 100644 --- a/arch/riscv/include/asm/pgtable.h +++ b/arch/riscv/include/asm/pgtable.h @@ -418,6 +418,9 @@ static inline void update_mmu_cache(struct vm_area_struct *vma, local_flush_tlb_page(address); } +#define __HAVE_ARCH_UPDATE_MMU_TLB +#define update_mmu_tlb update_mmu_cache + static inline void update_mmu_cache_pmd(struct vm_area_struct *vma, unsigned long address, pmd_t *pmdp) {