No need to get into the submenu to disable all related
config entries.
This makes it easier to disable all "RCU Debugging" config options
without entering the submenu. It will also enable one to see that
en/dis-abled state from the outside menu.
This is only intended to change menuconfig UI, not change
the config dependencies.
Signed-off-by: Vincent Legoll <[email protected]>
---
kernel/rcu/Kconfig.debug | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/kernel/rcu/Kconfig.debug b/kernel/rcu/Kconfig.debug
index 0ec7d1d33a14..f709bc50ac23 100644
--- a/kernel/rcu/Kconfig.debug
+++ b/kernel/rcu/Kconfig.debug
@@ -2,7 +2,10 @@
# RCU-related debugging configuration options
#
-menu "RCU Debugging"
+menuconfig RCUDEBUG_MENU
+ bool "RCU Debugging"
+
+if RCUDEBUG_MENU
config PROVE_RCU
def_bool PROVE_LOCKING
@@ -79,4 +82,4 @@ config RCU_EQS_DEBUG
Say N here if you need ultimate kernel/user switch latencies
Say Y if you are unsure
-endmenu # "RCU Debugging"
+endif # RCUDEBUG_MENU
--
2.14.1