rcu: Create per-cpu rcuc kthreads only when rcutree.use_softirq=0
authorZqiang <qiang1.zhang@intel.com>
Tue, 28 Dec 2021 16:05:10 +0000 (00:05 +0800)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 2 Feb 2022 01:19:02 +0000 (17:19 -0800)
commit4b4399b2450de38916718ba9947e6cdb69c99c55
tree0b2a5f93689032a224d22b612590f7b88253afba
parenteae9f147a4b02e132187a2d88a403b9ccc28212a
rcu: Create per-cpu rcuc kthreads only when rcutree.use_softirq=0

The per-CPU "rcuc" kthreads are used only by kernels booted with
rcutree.use_softirq=0, but they are nevertheless unconditionally created
by kernels built with CONFIG_RCU_BOOST=y.  This results in "rcuc"
kthreads being created that are never actually used.  This commit
therefore refrains from creating these kthreads unless the kernel
is actually booted with rcutree.use_softirq=0.

Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Zqiang <qiang1.zhang@intel.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.c