rcutorture: Use torture_hrtimeout_jiffies() to avoid busy-waits
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 17 Nov 2020 19:32:54 +0000 (11:32 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 7 Jan 2021 01:17:19 +0000 (17:17 -0800)
commitea31fd9ca87399ac4e03cd6c215451fa7dc366e4
tree697388cc7b8d32af57a5b078965fdcc30b77dc3a
parentae19aaafae95a5487469433e9cae4c208f8d15cd
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>
kernel/rcu/rcutorture.c