refperf: Add warmup and cooldown processing phases
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 26 May 2020 19:34:57 +0000 (12:34 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 29 Jun 2020 19:00:45 +0000 (12:00 -0700)
commit2db0bda38453f472640f4ece1e2a495cbd44f892
treec7a3b1ee3080df7c0d64b520b343653c4acaf250
parent86e0da2bb8ed934d3dce5a337895f1118f59c087
refperf: Add warmup and cooldown processing phases

This commit causes all the readers to start running unmeasured load
until all readers have done at least one such run (thus having warmed
up), then run the measured load, and then run unmeasured load until all
readers have completed their measured load.  This approach avoids any
thread running measured load while other readers are idle.

Cc: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/refperf.c