diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-01-31 11:57:43 -0800 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-02-23 09:02:54 -0800 |
commit | 628edaa5062282b6e3d76c886fd2cbccae5cb87b (patch) | |
tree | a21fe0f1b950f18859e8808b93fa4de57d05ffdd /include/linux | |
parent | fac480efcba6a9f0aea91947f151fd569538b0af (diff) | |
download | linux-stable-628edaa5062282b6e3d76c886fd2cbccae5cb87b.tar.gz linux-stable-628edaa5062282b6e3d76c886fd2cbccae5cb87b.tar.bz2 linux-stable-628edaa5062282b6e3d76c886fd2cbccae5cb87b.zip |
rcutorture: Abstract stutter_wait()
Because stuttering the test load (stopping and restarting it) is useful
for non-RCU testing, this commit moves the load-stuttering functionality
to kernel/torture.c.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/torture.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/torture.h b/include/linux/torture.h index 0259db38bfb0..203f127d9ddf 100644 --- a/include/linux/torture.h +++ b/include/linux/torture.h @@ -75,8 +75,13 @@ int torture_shuffle_init(long shuffint); /* Shutdown task absorption, for when the tasks cannot safely be killed. */ void torture_shutdown_absorb(const char *title); +/* Task stuttering, which forces load/no-load transitions. */ +void stutter_wait(const char *title); +int torture_stutter_init(int s); +void torture_stutter_cleanup(void); + /* Initialization and cleanup. */ -void torture_init_begin(char *ttype, bool v); +void torture_init_begin(char *ttype, bool v, int *runnable); void torture_init_end(void); bool torture_cleanup(void); bool torture_must_stop(void); |