diff options
author | Paul E. McKenney <paul.mckenney@linaro.org> | 2012-10-19 15:49:17 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2013-01-29 01:06:21 -0500 |
commit | 6bfc09e2327dfbffc312004c16188dbf8dfb0297 (patch) | |
tree | f36ac34ec671ea5eaa926ebabba8486bbda9c175 /lib/Kconfig.debug | |
parent | 1b0048a44c502c5ab850203e6e0a6498d7d8676d (diff) |
rcu: Provide RCU CPU stall warnings for tiny RCU
Tiny RCU has historically omitted RCU CPU stall warnings in order to
reduce memory requirements, however, lack of these warnings caused
Thomas Gleixner some debugging pain recently. Therefore, this commit
adds RCU CPU stall warnings to tiny RCU if RCU_TRACE=y. This keeps
the memory footprint small, while still enabling CPU stall warnings
in kernels built to enable them.
Updated to include Josh Triplett's suggested use of RCU_STALL_COMMON
config variable to simplify #if expressions.
Reported-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r-- | lib/Kconfig.debug | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 3a353091a903..f7329b3d4c8d 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -970,7 +970,7 @@ config RCU_TORTURE_TEST_RUNNABLE | |||
970 | 970 | ||
971 | config RCU_CPU_STALL_TIMEOUT | 971 | config RCU_CPU_STALL_TIMEOUT |
972 | int "RCU CPU stall timeout in seconds" | 972 | int "RCU CPU stall timeout in seconds" |
973 | depends on TREE_RCU || TREE_PREEMPT_RCU | 973 | depends on RCU_STALL_COMMON |
974 | range 3 300 | 974 | range 3 300 |
975 | default 21 | 975 | default 21 |
976 | help | 976 | help |