diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2020-11-17 11:32:54 -0800 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2021-01-06 17:17:19 -0800 |
commit | ea31fd9ca87399ac4e03cd6c215451fa7dc366e4 (patch) | |
tree | 697388cc7b8d32af57a5b078965fdcc30b77dc3a /kernel/rcu/srcutree.c | |
parent | ae19aaafae95a5487469433e9cae4c208f8d15cd (diff) | |
download | linux-ea31fd9ca87399ac4e03cd6c215451fa7dc366e4.tar.bz2 |
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/rcu/srcutree.c')
0 files changed, 0 insertions, 0 deletions