aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorStijn Tintel <stijn@linux-ipv6.be>2020-08-01 16:29:24 +0300
committerDaniel Golle <daniel@makrotopia.org>2020-08-01 14:33:46 +0100
commit5c3e83fa881a081d0368cf3933b30a38519aaafd (patch)
treeedac98c2025020bf5b7971449a80580d92129645 /config
parent1bff9f5b78f8a662f4ea6707e176ffb023cab0a3 (diff)
downloadupstream-5c3e83fa881a081d0368cf3933b30a38519aaafd.tar.gz
upstream-5c3e83fa881a081d0368cf3933b30a38519aaafd.tar.bz2
upstream-5c3e83fa881a081d0368cf3933b30a38519aaafd.zip
kernel: fix missing TRANSPARENT_HUGEPAGE symbols
Enabling KERNEL_TRANSPARENT_HUGEPAGE exposes 2 missing symbols: * CONFIG_READ_ONLY_THP_FOR_FS * TRANSPARENT_HUGEPAGE_ALWAYS * TRANSPARENT_HUGEPAGE_MADVISE The first one was added in 5.4, and is marked experimental there so just disable it in the generic config. For the latter two, we should not force the user to use either of them, so add them as build-configurable kernel options. Fixes: d1a8217d87bf ("kernel: clean-up build-configurable kernel config symbols") Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Diffstat (limited to 'config')
-rw-r--r--config/Config-kernel.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/config/Config-kernel.in b/config/Config-kernel.in
index fa4c8257b2..2e80c8f537 100644
--- a/config/Config-kernel.in
+++ b/config/Config-kernel.in
@@ -360,6 +360,18 @@ config KERNEL_BLK_DEV_BSG
config KERNEL_TRANSPARENT_HUGEPAGE
bool
+choice
+ prompt "Transparent Hugepage Support sysfs defaults"
+ depends on KERNEL_TRANSPARENT_HUGEPAGE
+ default KERNEL_TRANSPARENT_HUGEPAGE_ALWAYS
+
+ config KERNEL_TRANSPARENT_HUGEPAGE_ALWAYS
+ bool "always"
+
+ config KERNEL_TRANSPARENT_HUGEPAGE_MADVISE
+ bool "madvise"
+endchoice
+
config KERNEL_HUGETLBFS
bool