linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] make "RCU Debugging" a menuconfig to ease disabling it all
@ 2017-12-09 16:33 Vincent Legoll
  0 siblings, 0 replies; only message in thread
From: Vincent Legoll @ 2017-12-09 16:33 UTC (permalink / raw)
  To: Paul E. McKenney, Josh Triplett, Steven Rostedt,
	Mathieu Desnoyers, Lai Jiangshan, linux-kernel
  Cc: Vincent Legoll

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 <vincent.legoll@gmail.com>
---
 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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-12-09 16:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-09 16:33 [PATCH] make "RCU Debugging" a menuconfig to ease disabling it all Vincent Legoll

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).