Skip to content

Commit dea81dc

Browse files
committed
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 <[email protected]>
1 parent 3f0c06e commit dea81dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kernel/torture.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -557,9 +557,11 @@ static void torture_shuffle_tasks(void)
557557
*/
558558
static int torture_shuffle(void *arg)
559559
{
560+
DEFINE_TORTURE_RANDOM(rand);
561+
560562
VERBOSE_TOROUT_STRING("torture_shuffle task started");
561563
do {
562-
schedule_timeout_interruptible(shuffle_interval);
564+
torture_hrtimeout_jiffies(shuffle_interval, &rand);
563565
torture_shuffle_tasks();
564566
torture_shutdown_absorb("torture_shuffle");
565567
} while (!torture_must_stop());

0 commit comments

Comments
 (0)