From 855f7e99b6cab09ddcf7715d64f72813428f159c Mon Sep 17 00:00:00 2001 From: Dimitar Yurukov Date: Fri, 29 Mar 2024 00:24:21 +0000 Subject: [PATCH] arm64: Kconfig: Select PGTABLE_MAPPING VM mapping is faster than copying on ARM64. Signed-off-by: Dimitar Yurukov Signed-off-by: onettboots --- arch/arm64/Kconfig | 1 + arch/arm64/configs/raphael_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 7eabc2b5529a..7211d54103d7 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -40,6 +40,7 @@ config ARM64 select ARCH_INLINE_WRITE_UNLOCK_BH if !PREEMPT select ARCH_INLINE_WRITE_UNLOCK_IRQ if !PREEMPT select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE if !PREEMPT + select PGTABLE_MAPPING if ZSMALLOC select ARCH_USE_CMPXCHG_LOCKREF select ARCH_USE_QUEUED_RWLOCKS select ARCH_USE_QUEUED_SPINLOCKS diff --git a/arch/arm64/configs/raphael_defconfig b/arch/arm64/configs/raphael_defconfig index 52a234599182..b7796c190a51 100644 --- a/arch/arm64/configs/raphael_defconfig +++ b/arch/arm64/configs/raphael_defconfig @@ -105,6 +105,7 @@ CONFIG_SCHED_HRTICK=y CONFIG_DEFAULT_MMAP_MIN_ADDR=32768 CONFIG_CMA=y CONFIG_ZSMALLOC=y +CONFIG_PGTABLE_MAPPING=y CONFIG_BALANCE_ANON_FILE_RECLAIM=y CONFIG_SECCOMP=y # CONFIG_HARDEN_BRANCH_PREDICTOR is not set