rcu: Add CPU-stall capability to rcutorture
authorPaul E. McKenney <paul.mckenney@linaro.org>
Fri, 20 Jan 2012 23:36:33 +0000 (15:36 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 21 Feb 2012 17:03:52 +0000 (09:03 -0800)
commitc13f3757d0fcdcc2b7fc5d5e38da76b8913e6648
tree7ae68a12459fc4f18b87fa1a44239e29f82cd244
parent105617da8dc0ae3cf5f5a581330b1e4846fe87f2
rcu: Add CPU-stall capability to rcutorture

Add module parameters to rcutorture that induce a CPU stall.
The stall_cpu parameter specifies how long to stall in seconds,
defaulting to zero, which indicates no stalling is to be undertaken.
The stall_cpu_holdoff parameter specifies how many seconds after
insmod (or boot, if rcutorture is built into the kernel) that this
stall is to start.  The default value for stall_cpu_holdoff is ten
seconds.

Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Documentation/RCU/torture.txt
kernel/rcutorture.c