aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-01-27 14:49:39 -0500
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-02-23 12:00:58 -0500
commit51b1130eb5823ddb90a9ad07d243031d8cb7ecf2 (patch)
treeab66b2dfa679027a90b122ee95c1a82c4ff5a1f7 /lib
parent806274c018e9858320a27b785df761f45c33a56c (diff)
rcutorture: Abstract rcu_torture_random()
Because rcu_torture_random() will be used by the locking equivalent to rcutorture, pull it out into its own module. This new module cannot be separately configured, instead, use the Kconfig "select" statement from the Kconfig options of tests depending on it. Suggested-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Kconfig.debug5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index a48abeac753f..2bfb4e5cdf8c 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1141,9 +1141,14 @@ config SPARSE_RCU_POINTER
1141 1141
1142 Say N if you are unsure. 1142 Say N if you are unsure.
1143 1143
1144config TORTURE_TEST
1145 tristate
1146 default n
1147
1144config RCU_TORTURE_TEST 1148config RCU_TORTURE_TEST
1145 tristate "torture tests for RCU" 1149 tristate "torture tests for RCU"
1146 depends on DEBUG_KERNEL 1150 depends on DEBUG_KERNEL
1151 select TORTURE_TEST
1147 default n 1152 default n
1148 help 1153 help
1149 This option provides a kernel module that runs torture tests 1154 This option provides a kernel module that runs torture tests