aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorNicolas Pitre <[email protected]>2017-08-01 00:31:32 -0400
committerThomas Gleixner <[email protected]>2017-08-01 14:36:35 +0200
commitbc2eecd7ecce40af43b6eb3d256b6076257df846 (patch)
treed4189369c4484b144f9cb3d72455ac3a5207dd37 /init
parentf06e8c584fa0d05312c11ea66194f3d2efb93c21 (diff)
futex: Allow for compiling out PI support
This makes it possible to preserve basic futex support and compile out the PI support when RT mutexes are not available. Signed-off-by: Nicolas Pitre <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Darren Hart <[email protected]> Link: http://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig7
1 files changed, 6 insertions, 1 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 8514b25db21c..5f0ef850e808 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1275,12 +1275,17 @@ config BASE_FULL
config FUTEX
bool "Enable futex support" if EXPERT
default y
- select RT_MUTEXES
+ imply RT_MUTEXES
help
Disabling this option will cause the kernel to be built without
support for "fast userspace mutexes". The resulting kernel may not
run glibc-based applications correctly.
+config FUTEX_PI
+ bool
+ depends on FUTEX && RT_MUTEXES
+ default y
+
config HAVE_FUTEX_CMPXCHG
bool
depends on FUTEX