refperf: Add holdoff parameter to allow CPUs to come online
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 25 May 2020 21:16:44 +0000 (14:16 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 29 Jun 2020 19:00:44 +0000 (12:00 -0700)
commit777a54c908ec69fa0eccab54068a49ecda38ffde
treec128debfaf0a1e8942422eb42e7ce89ace0e429e
parentf8b4bb23ec014a5d16663ad70b45d9f46c456ec4
refperf: Add holdoff parameter to allow CPUs to come online

This commit adds an rcuperf module parameter named "holdoff" that
defaults to 10 seconds if refperf is built in and to zero otherwise.
The assumption is that all the CPUs are online by the time that the
modprobe and insmod commands are going to do anything, and that normal
systems will have all the CPUs online within ten seconds.

Larger systems may take many tens of seconds or even minutes to get
to this point, hence this being a module parameter instead of being a
hard-coded constant.

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