From: Chintan Pandya Date: Wed, 6 Jun 2018 07:01:20 +0000 (+0530) Subject: arm64: tlbflush: Introduce __flush_tlb_kernel_pgtable X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=05f2d2f83b5a;p=openwrt%2Fstaging%2Fblogic.git arm64: tlbflush: Introduce __flush_tlb_kernel_pgtable Add an interface to invalidate intermediate page tables from TLB for kernel. Acked-by: Will Deacon Signed-off-by: Chintan Pandya Signed-off-by: Will Deacon --- diff --git a/arch/arm64/include/asm/tlbflush.h b/arch/arm64/include/asm/tlbflush.h index dfc61d73f740..a4a1901140ee 100644 --- a/arch/arm64/include/asm/tlbflush.h +++ b/arch/arm64/include/asm/tlbflush.h @@ -218,6 +218,13 @@ static inline void __flush_tlb_pgtable(struct mm_struct *mm, dsb(ish); } +static inline void __flush_tlb_kernel_pgtable(unsigned long kaddr) +{ + unsigned long addr = __TLBI_VADDR(kaddr, 0); + + __tlbi(vaae1is, addr); + dsb(ish); +} #endif #endif