Skip to contentSkip to conversation

make "RCU Debugging" a menuconfig to ease disabling it all

PATCH Superseded Vincent Legoll 1 participant 1 message Dec 9, 2017 RCU

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make "RCU Debugging" a menuconfig to ease disabling it all

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.

---
 kernel/rcu/Kconfig.debug | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
kernel/rcu/Kconfig.debug +5 -2
index 0ec7d1d33a14..f709bc50ac23 100644
@@ -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
Signature · 1 line
2.14.1