projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d248bb
)
torture: Make torture_hrtimeout_*() use TASK_IDLE
author
Paul E. McKenney
<paulmck@kernel.org>
Mon, 26 Jun 2023 21:59:29 +0000
(14:59 -0700)
committer
Paul E. McKenney
<paulmck@kernel.org>
Mon, 14 Aug 2023 22:01:07 +0000
(15:01 -0700)
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>
kernel/torture.c
patch
|
blob
|
history
diff --git
a/kernel/torture.c
b/kernel/torture.c
index
a1ac493
..
68c831a
100644
(file)
--- 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_
UNINTERRUPTIB
LE);
+ set_current_state(TASK_
ID
LE);
return schedule_hrtimeout(&hto, HRTIMER_MODE_REL);
}
EXPORT_SYMBOL_GPL(torture_hrtimeout_ns);