aboutsummaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/tlb.h
diff options
context:
space:
mode:
authorSteve Capper <steve.capper@linaro.org>2013-04-19 16:23:57 +0100
committerSteve Capper <steve.capper@linaro.org>2013-06-14 09:52:41 +0100
commitaf07484863e0c20796081e57093886c22dc16705 (patch)
treec9891c1048f860413c7cfd79e2b7a686c8be0263 /arch/arm64/include/asm/tlb.h
parentd03bb1455f3a2804539ed27047fd3b073fdeb3e0 (diff)
downloadlinux-af07484863e0c20796081e57093886c22dc16705.tar.gz
ARM64: mm: THP support.for-next/hugepages
Bring Transparent HugePage support to ARM. The size of a transparent huge page depends on the normal page size. A transparent huge page is always represented as a pmd. If PAGE_SIZE is 4KB, THPs are 2MB. If PAGE_SIZE is 64KB, THPs are 512MB. Signed-off-by: Steve Capper <steve.capper@linaro.org> Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/tlb.h')
-rw-r--r--arch/arm64/include/asm/tlb.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/tlb.h b/arch/arm64/include/asm/tlb.h
index 654f0968030..46b3beb4b77 100644
--- a/arch/arm64/include/asm/tlb.h
+++ b/arch/arm64/include/asm/tlb.h
@@ -187,4 +187,10 @@ static inline void __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmdp,
#define tlb_migrate_finish(mm) do { } while (0)
+static inline void
+tlb_remove_pmd_tlb_entry(struct mmu_gather *tlb, pmd_t *pmdp, unsigned long addr)
+{
+ tlb_add_flush(tlb, addr);
+}
+
#endif