Skip to content
Commit ea31fd9c authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

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: default avatarPaul E. McKenney <paulmck@kernel.org>
parent ae19aaaf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment