summaryrefslogtreecommitdiff
path: root/kernel/torture.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2023-06-26 15:19:56 -0700
committerPaul E. McKenney <paulmck@kernel.org>2023-08-14 15:01:08 -0700
commit3f0c06e1cba6207703733474bc7b55292bc86c6a (patch)
treea978c71ab9fadcb6fe0ca6eaaedcb20880339d69 /kernel/torture.c
parent872948c665f50a1446e8a34b1ed57bb0b3a9ca4a (diff)
torture: Move torture_onoff() timeouts to hrtimers
In order to gain better race coverage, move the CPU-hotplug-related timed waits in torture_onoff() to torture_hrtimeout_jiffies(). Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/torture.c')
-rw-r--r--kernel/torture.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/torture.c b/kernel/torture.c
index 68c831a43a58..2c441d5a1bdd 100644
--- a/kernel/torture.c
+++ b/kernel/torture.c
@@ -354,12 +354,12 @@ torture_onoff(void *arg)
if (onoff_holdoff > 0) {
VERBOSE_TOROUT_STRING("torture_onoff begin holdoff");
- schedule_timeout_interruptible(onoff_holdoff);
+ torture_hrtimeout_jiffies(onoff_holdoff, &rand);
VERBOSE_TOROUT_STRING("torture_onoff end holdoff");
}
while (!torture_must_stop()) {
if (disable_onoff_at_boot && !rcu_inkernel_boot_has_ended()) {
- schedule_timeout_interruptible(HZ / 10);
+ torture_hrtimeout_jiffies(HZ / 10, &rand);
continue;
}
cpu = (torture_random(&rand) >> 4) % (maxcpu + 1);
@@ -369,7 +369,7 @@ torture_onoff(void *arg)
torture_online(cpu,
&n_online_attempts, &n_online_successes,
&sum_online, &min_online, &max_online);
- schedule_timeout_interruptible(onoff_interval);
+ torture_hrtimeout_jiffies(onoff_interval, &rand);
}
stop: