[PATCH V14 4/4] LoongArch: Enable ARCH_WANT_HUGETLB_PAGE_OPTIMIZE_VMEMMAP

Huacai Chen chenhuacai at loongson.cn
Thu Oct 27 05:52:53 PDT 2022


From: Feiyang Chen <chenfeiyang at loongson.cn>

The feature of minimizing overhead of struct page associated with each
HugeTLB page is implemented on x86_64. However, the infrastructure of
this feature is already there, so just select ARCH_WANT_HUGETLB_PAGE_
OPTIMIZE_VMEMMAP is enough to enable this feature for LoongArch.

Reviewed-by: Philippe Mathieu-Daudé <philmd at linaro.org>
Signed-off-by: Feiyang Chen <chenfeiyang at loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai at loongson.cn>
---
 arch/loongarch/Kconfig     | 1 +
 1 files changed, 1 insertions(+)

diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig
index 6f7fa0c0ca08..0a6ef613124c 100644
--- a/arch/loongarch/Kconfig
+++ b/arch/loongarch/Kconfig
@@ -52,6 +52,7 @@ config LOONGARCH
 	select ARCH_USE_QUEUED_RWLOCKS
 	select ARCH_USE_QUEUED_SPINLOCKS
 	select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT
+	select ARCH_WANT_HUGETLB_PAGE_OPTIMIZE_VMEMMAP
 	select ARCH_WANT_LD_ORPHAN_WARN
 	select ARCH_WANTS_NO_INSTR
 	select BUILDTIME_TABLE_SORT
-- 
2.31.1




More information about the linux-arm-kernel mailing list