Skip to content

Commit b3ff2d9

Browse files
masahir0ychenhuacai
authored andcommitted
LoongArch: Select ARCH_ENABLE_THP_MIGRATION instead of redefining it
ARCH_ENABLE_THP_MIGRATION is supposed to be selected by arch Kconfig. Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
1 parent 54be6c6 commit b3ff2d9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

arch/loongarch/Kconfig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ config LOONGARCH
1212
select ARCH_DISABLE_KASAN_INLINE
1313
select ARCH_ENABLE_MEMORY_HOTPLUG
1414
select ARCH_ENABLE_MEMORY_HOTREMOVE
15+
select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE
1516
select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI
1617
select ARCH_HAS_CPU_FINALIZE_INIT
1718
select ARCH_HAS_FORTIFY_SOURCE
@@ -667,10 +668,6 @@ config ARCH_SPARSEMEM_ENABLE
667668
or have huge holes in the physical address space for other reasons.
668669
See <file:Documentation/mm/numa.rst> for more.
669670

670-
config ARCH_ENABLE_THP_MIGRATION
671-
def_bool y
672-
depends on TRANSPARENT_HUGEPAGE
673-
674671
config ARCH_MEMORY_PROBE
675672
def_bool y
676673
depends on MEMORY_HOTPLUG

0 commit comments

Comments
 (0)