summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/pgtable.h
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2022-07-25 10:57:02 +0100
committerWill Deacon <will@kernel.org>2022-07-25 10:57:02 +0100
commit03939cf0d5d5eaf4141c594e427eb5ba14fbcd91 (patch)
tree7fd2bee2dcd0cd2879490564fb26dd78db35aaca /arch/arm64/include/asm/pgtable.h
parent02eab44c71df05882be9352ca12d8a60f7a10649 (diff)
parentd0637c505f8a1d8c4088642f1f3e9e3b22da14f6 (diff)
downloadlinux-03939cf0d5d5eaf4141c594e427eb5ba14fbcd91.tar.bz2
Merge branch 'for-next/mm' into for-next/core
* for-next/mm: arm64: enable THP_SWAP for arm64
Diffstat (limited to 'arch/arm64/include/asm/pgtable.h')
-rw-r--r--arch/arm64/include/asm/pgtable.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.h
index 5a2eb6232e69..b5df82aa99e6 100644
--- a/arch/arm64/include/asm/pgtable.h
+++ b/arch/arm64/include/asm/pgtable.h
@@ -45,6 +45,12 @@
__flush_tlb_range(vma, addr, end, PUD_SIZE, false, 1)
#endif /* CONFIG_TRANSPARENT_HUGEPAGE */
+static inline bool arch_thp_swp_supported(void)
+{
+ return !system_supports_mte();
+}
+#define arch_thp_swp_supported arch_thp_swp_supported
+
/*
* Outside of a few very special situations (e.g. hibernation), we always
* use broadcast TLB invalidation instructions, therefore a spurious page