Skip to content

Commit 2eb835e

Browse files
stevecapperlinaroctmarinas
authored andcommitted
arm64: mm: Add THP TLB entries to general mmu_gather
When arm64 moved over to the core mmu_gather, it lost the logic to flush THP TLB entries (tlb_remove_pmd_tlb_entry was removed and the core implementation only signals that the mmu_gather needs a flush). This patch ensures that tlb_add_flush is called for THP TLB entries. Signed-off-by: Steve Capper <steve.capper@linaro.org> Acked-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent c46a98a commit 2eb835e

File tree

1 file changed

+6
-0
lines changed
  • arch/arm64/include/asm

1 file changed

+6
-0
lines changed

arch/arm64/include/asm/tlb.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#ifndef __ASM_TLB_H
2020
#define __ASM_TLB_H
2121

22+
#define __tlb_remove_pmd_tlb_entry __tlb_remove_pmd_tlb_entry
2223

2324
#include <asm-generic/tlb.h>
2425

@@ -99,5 +100,10 @@ static inline void __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmdp,
99100
}
100101
#endif
101102

103+
static inline void __tlb_remove_pmd_tlb_entry(struct mmu_gather *tlb, pmd_t *pmdp,
104+
unsigned long address)
105+
{
106+
tlb_add_flush(tlb, address);
107+
}
102108

103109
#endif

0 commit comments

Comments
 (0)