summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2023-06-27 02:52:35 +0300
committerPaul E. McKenney <paulmck@kernel.org>2023-08-15 01:01:08 +0300
commit10af43671e8bf4ac153c4991a17cdf57bc6d2cfe (patch)
treeb172f555d412c5b58f633a19e62f2237802ca4cb /kernel
parentdea81dcfd3497e75eb23e7543434f88c34289d31 (diff)
downloadlinux-10af43671e8bf4ac153c4991a17cdf57bc6d2cfe.tar.xz
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 <paulmck@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/torture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/torture.c b/kernel/torture.c
index c5311154bc4d..984651de4b55 100644
--- a/kernel/torture.c
+++ b/kernel/torture.c
@@ -742,7 +742,7 @@ bool stutter_wait(const char *title)
ret = true;
}
if (spt == 1) {
- schedule_timeout_interruptible(1);
+ torture_hrtimeout_jiffies(1, NULL);
} else if (spt == 2) {
while (READ_ONCE(stutter_pause_test)) {
if (!(i++ & 0xffff))
@@ -750,7 +750,7 @@ bool stutter_wait(const char *title)
cond_resched();
}
} else {
- schedule_timeout_interruptible(round_jiffies_relative(HZ));
+ torture_hrtimeout_jiffies(round_jiffies_relative(HZ), NULL);
}
torture_shutdown_absorb(title);
}