diff options
author | Will Deacon <will@kernel.org> | 2022-07-25 12:57:02 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-07-25 12:57:02 +0300 |
commit | 03939cf0d5d5eaf4141c594e427eb5ba14fbcd91 (patch) | |
tree | 7fd2bee2dcd0cd2879490564fb26dd78db35aaca /arch/arm64/include | |
parent | 02eab44c71df05882be9352ca12d8a60f7a10649 (diff) | |
parent | d0637c505f8a1d8c4088642f1f3e9e3b22da14f6 (diff) | |
download | linux-03939cf0d5d5eaf4141c594e427eb5ba14fbcd91.tar.xz |
Merge branch 'for-next/mm' into for-next/core
* for-next/mm:
arm64: enable THP_SWAP for arm64
Diffstat (limited to 'arch/arm64/include')
-rw-r--r-- | arch/arm64/include/asm/pgtable.h | 6 |
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 |