aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/torture.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2020-11-17 11:32:54 -0800
committerPaul E. McKenney <paulmck@kernel.org>2021-01-06 17:17:19 -0800
commitea31fd9ca87399ac4e03cd6c215451fa7dc366e4 (patch)
tree697388cc7b8d32af57a5b078965fdcc30b77dc3a /kernel/torture.c
parenttorture: Add fuzzed hrtimer-based sleep functions (diff)
downloadlinux-dev-ea31fd9ca87399ac4e03cd6c215451fa7dc366e4.tar.xz
linux-dev-ea31fd9ca87399ac4e03cd6c215451fa7dc366e4.zip
rcutorture: Use torture_hrtimeout_jiffies() to avoid busy-waits
Because rcu_torture_writer() and rcu_torture_fakewriter() predate hrtimers, they do timer-wheel-decoupled timed waits by using the timer-wheel-based schedule_timeout_interruptible() functions in conjunction with a random udelay()-based wait. This latter unnecessarily burns CPU time, so this commit instead uses torture_hrtimeout_jiffies() to decouple from the timer wheels without busy-waiting. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/torture.c')
0 files changed, 0 insertions, 0 deletions