aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutorture.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/rcutorture.c')
-rw-r--r--kernel/rcutorture.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c
index 27003e2421c7..0c40c13c5402 100644
--- a/kernel/rcutorture.c
+++ b/kernel/rcutorture.c
@@ -196,7 +196,10 @@ static void
196rcu_stutter_wait(void) 196rcu_stutter_wait(void)
197{ 197{
198 while (stutter_pause_test || !rcutorture_runnable) 198 while (stutter_pause_test || !rcutorture_runnable)
199 schedule_timeout_interruptible(1); 199 if (rcutorture_runnable)
200 schedule_timeout_interruptible(1);
201 else
202 schedule_timeout_interruptible(HZ);
200} 203}
201 204
202/* 205/*