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>
This commit is contained in:
Paul E. McKenney
2014-01-27 11:49:39 -08:00
parent 806274c018
commit 51b1130eb5
6 changed files with 147 additions and 46 deletions

2125
kernel/rcu/rcutorture.c Normal file

File diff suppressed because it is too large Load Diff