Skip to content

Commit 872948c

Browse files
committed
torture: Make torture_hrtimeout_*() use TASK_IDLE
Given that it is expected that more code will use torture_hrtimeout_*(), including for longer timeouts, make it use TASK_IDLE instead of TASK_UNINTERRUPTIBLE. Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 5d248bb commit 872948c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/torture.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ int torture_hrtimeout_ns(ktime_t baset_ns, u32 fuzzt_ns, struct torture_random_s
9393

9494
if (trsp)
9595
hto += (torture_random(trsp) >> 3) % fuzzt_ns;
96-
set_current_state(TASK_UNINTERRUPTIBLE);
96+
set_current_state(TASK_IDLE);
9797
return schedule_hrtimeout(&hto, HRTIMER_MODE_REL);
9898
}
9999
EXPORT_SYMBOL_GPL(torture_hrtimeout_ns);

0 commit comments

Comments
 (0)