Skip to content

Commit f61d413

Browse files
committed
powerpc/mm/64s: Move THP reqs into a separate symbol
Move the Kconfig symbols related to transparent hugepages (THP) under a separate config symbol, separate from CONFIG_PPC_BOOK3S_64. The new symbol is automatically enabled if CONFIG_PPC_BOOK3S_64 is enabled, so there is no behaviour change, except for the existence of the new PPC_THP symbol. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20240823032911.1238471-1-mpe@ellerman.id.au
1 parent 8589cdf commit f61d413

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

arch/powerpc/platforms/Kconfig.cputype

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,8 @@ config PPC_BOOK3S_64
8484
bool "Server processors"
8585
select PPC_FPU
8686
select PPC_HAVE_PMU_SUPPORT
87-
select HAVE_ARCH_TRANSPARENT_HUGEPAGE
88-
select HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD
8987
select ARCH_ENABLE_HUGEPAGE_MIGRATION if HUGETLB_PAGE && MIGRATION
9088
select ARCH_ENABLE_SPLIT_PMD_PTLOCK
91-
select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE
9289
select ARCH_SUPPORTS_HUGETLBFS
9390
select ARCH_SUPPORTS_NUMA_BALANCING
9491
select HAVE_MOVE_PMD
@@ -108,6 +105,13 @@ config PPC_BOOK3E_64
108105

109106
endchoice
110107

108+
config PPC_THP
109+
def_bool y
110+
depends on PPC_BOOK3S_64
111+
select HAVE_ARCH_TRANSPARENT_HUGEPAGE
112+
select HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD
113+
select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE
114+
111115
choice
112116
prompt "CPU selection"
113117
help

0 commit comments

Comments
 (0)