Skip to content

Commit 10af436

Browse files
committed
torture: Move stutter_wait() timeouts to hrtimers
In order to gain better race coverage, move the test start/stop waits in stutter_wait() to torture_hrtimeout_jiffies(). Signed-off-by: Paul E. McKenney <[email protected]>
1 parent dea81dc commit 10af436

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/torture.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -742,15 +742,15 @@ bool stutter_wait(const char *title)
742742
ret = true;
743743
}
744744
if (spt == 1) {
745-
schedule_timeout_interruptible(1);
745+
torture_hrtimeout_jiffies(1, NULL);
746746
} else if (spt == 2) {
747747
while (READ_ONCE(stutter_pause_test)) {
748748
if (!(i++ & 0xffff))
749749
torture_hrtimeout_us(10, 0, NULL);
750750
cond_resched();
751751
}
752752
} else {
753-
schedule_timeout_interruptible(round_jiffies_relative(HZ));
753+
torture_hrtimeout_jiffies(round_jiffies_relative(HZ), NULL);
754754
}
755755
torture_shutdown_absorb(title);
756756
}

0 commit comments

Comments
 (0)