summaryrefslogtreecommitdiff
path: root/kernel/torture.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2023-06-27 02:27:02 +0300
committerPaul E. McKenney <paulmck@kernel.org>2023-08-15 01:01:08 +0300
commitdea81dcfd3497e75eb23e7543434f88c34289d31 (patch)
treef81a28c8a44cd8a8cc77a51150dc358b6939bccf /kernel/torture.c
parent3f0c06e1cba6207703733474bc7b55292bc86c6a (diff)
downloadlinux-dea81dcfd3497e75eb23e7543434f88c34289d31.tar.xz
torture: Move torture_shuffle() timeouts to hrtimers
In order to gain better race coverage, move the CPU-migration timed waits in torture_shuffle() to torture_hrtimeout_jiffies(). Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/torture.c')
-rw-r--r--kernel/torture.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/torture.c b/kernel/torture.c
index 2c441d5a1bdd..c5311154bc4d 100644
--- a/kernel/torture.c
+++ b/kernel/torture.c
@@ -557,9 +557,11 @@ static void torture_shuffle_tasks(void)
*/
static int torture_shuffle(void *arg)
{
+ DEFINE_TORTURE_RANDOM(rand);
+
VERBOSE_TOROUT_STRING("torture_shuffle task started");
do {
- schedule_timeout_interruptible(shuffle_interval);
+ torture_hrtimeout_jiffies(shuffle_interval, &rand);
torture_shuffle_tasks();
torture_shutdown_absorb("torture_shuffle");
} while (!torture_must_stop());