Skip to contentSkip to conversation

loongarch: select ARCH_ENABLE_THP_MIGRATION instead of redefining it

PATCH Applied Masahiro Yamada 2 participants 2 messages Feb 4, 2024 – Feb 6, 2024 LoongArch

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 loongarch: select ARCH_ENABLE_THP_MIGRATION instead of redefining it

ARCH_ENABLE_THP_MIGRATION is supposed to be selected by arch Kconfig.

---

 arch/loongarch/Kconfig | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
arch/loongarch/Kconfig +1 -4
index 10959e6c3583..64e9a01c7f36 100644
@@ -12,6 +12,7 @@ config LOONGARCH
 	select ARCH_DISABLE_KASAN_INLINE
 	select ARCH_ENABLE_MEMORY_HOTPLUG
 	select ARCH_ENABLE_MEMORY_HOTREMOVE
+	select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE
 	select ARCH_HAS_ACPI_TABLE_UPGRADE	if ACPI
 	select ARCH_HAS_CPU_FINALIZE_INIT
 	select ARCH_HAS_FORTIFY_SOURCE
@@ -667,10 +668,6 @@ config ARCH_SPARSEMEM_ENABLE
 	  or have huge holes in the physical address space for other reasons.
 	  See <file:Documentation/mm/numa.rst> for more.
 
-config ARCH_ENABLE_THP_MIGRATION
-	def_bool y
-	depends on TRANSPARENT_HUGEPAGE
-
 config ARCH_MEMORY_PROBE
 	def_bool y
 	depends on MEMORY_HOTPLUG
Signature · 1 line
2.40.1
maintainer Applied
#1 lore raw

Queued, thanks.

Huacai

Quoted 36 lines · Masahiro Yamada

ARCH_ENABLE_THP_MIGRATION is supposed to be selected by arch Kconfig.

---

 arch/loongarch/Kconfig | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
arch/loongarch/Kconfig +1 -5
index 10959e6c3583..64e9a01c7f36 100644
@@ -12,6 +12,7 @@ config LOONGARCH
        select ARCH_DISABLE_KASAN_INLINE
        select ARCH_ENABLE_MEMORY_HOTPLUG
        select ARCH_ENABLE_MEMORY_HOTREMOVE
+       select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE
        select ARCH_HAS_ACPI_TABLE_UPGRADE      if ACPI
        select ARCH_HAS_CPU_FINALIZE_INIT
        select ARCH_HAS_FORTIFY_SOURCE
@@ -667,10 +668,6 @@ config ARCH_SPARSEMEM_ENABLE
          or have huge holes in the physical address space for other reasons.
          See <file:Documentation/mm/numa.rst> for more.
 
-config ARCH_ENABLE_THP_MIGRATION
-       def_bool y
-       depends on TRANSPARENT_HUGEPAGE
-
 config ARCH_MEMORY_PROBE
        def_bool y
        depends on MEMORY_HOTPLUG
--

2.40.1