rcutorture: Abstract rcu_torture_random()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 27 Jan 2014 19:49:39 +0000 (11:49 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 23 Feb 2014 17:00:58 +0000 (09:00 -0800)
commit51b1130eb5823ddb90a9ad07d243031d8cb7ecf2
treeab66b2dfa679027a90b122ee95c1a82c4ff5a1f7
parent806274c018e9858320a27b785df761f45c33a56c
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>
include/linux/torture.h [new file with mode: 0644]
kernel/Makefile
kernel/rcu/Makefile
kernel/rcu/rcutorture.c [new file with mode: 0644]
kernel/rcu/torture.c [deleted file]
kernel/torture.c [new file with mode: 0644]
lib/Kconfig.debug