diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2023-06-26 14:59:29 -0700 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2023-08-14 15:01:07 -0700 |
commit | 872948c665f50a1446e8a34b1ed57bb0b3a9ca4a (patch) | |
tree | bbab9b1c70fd9363cf87b0401cc2058f01e34863 /kernel/torture.c | |
parent | 5d248bb39fe1388943acb6510f8f48fa5570e0ec (diff) |
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 <paulmck@kernel.org>
Diffstat (limited to 'kernel/torture.c')
-rw-r--r-- | kernel/torture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/torture.c b/kernel/torture.c index a1ac493488e2..68c831a43a58 100644 --- a/kernel/torture.c +++ b/kernel/torture.c @@ -93,7 +93,7 @@ int torture_hrtimeout_ns(ktime_t baset_ns, u32 fuzzt_ns, struct torture_random_s if (trsp) hto += (torture_random(trsp) >> 3) % fuzzt_ns; - set_current_state(TASK_UNINTERRUPTIBLE); + set_current_state(TASK_IDLE); return schedule_hrtimeout(&hto, HRTIMER_MODE_REL); } EXPORT_SYMBOL_GPL(torture_hrtimeout_ns); |