diff options
Diffstat (limited to 'include/linux/torture.h')
-rw-r--r-- | include/linux/torture.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/torture.h b/include/linux/torture.h index a45702eb3e7b..66272862070b 100644 --- a/include/linux/torture.h +++ b/include/linux/torture.h | |||
@@ -79,7 +79,7 @@ void stutter_wait(const char *title); | |||
79 | int torture_stutter_init(int s); | 79 | int torture_stutter_init(int s); |
80 | 80 | ||
81 | /* Initialization and cleanup. */ | 81 | /* Initialization and cleanup. */ |
82 | bool torture_init_begin(char *ttype, bool v, int *runnable); | 82 | bool torture_init_begin(char *ttype, bool v); |
83 | void torture_init_end(void); | 83 | void torture_init_end(void); |
84 | bool torture_cleanup_begin(void); | 84 | bool torture_cleanup_begin(void); |
85 | void torture_cleanup_end(void); | 85 | void torture_cleanup_end(void); |
@@ -96,4 +96,10 @@ void _torture_stop_kthread(char *m, struct task_struct **tp); | |||
96 | #define torture_stop_kthread(n, tp) \ | 96 | #define torture_stop_kthread(n, tp) \ |
97 | _torture_stop_kthread("Stopping " #n " task", &(tp)) | 97 | _torture_stop_kthread("Stopping " #n " task", &(tp)) |
98 | 98 | ||
99 | #ifdef CONFIG_PREEMPT | ||
100 | #define torture_preempt_schedule() preempt_schedule() | ||
101 | #else | ||
102 | #define torture_preempt_schedule() | ||
103 | #endif | ||
104 | |||
99 | #endif /* __LINUX_TORTURE_H */ | 105 | #endif /* __LINUX_TORTURE_H */ |