rcu: Create and use an rcu_rdp_cpu_online()
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 10 Dec 2021 21:44:17 +0000 (13:44 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 8 Feb 2022 18:12:28 +0000 (10:12 -0800)
commit5ae0f1b58b28b53f4ab3708ef9337a2665e79664
tree15357f3e7b4b497c0a1834493e7c9e8489514777
parent80b3fd474c91b3ecfd845b4a0bfb58706b877ba5
rcu: Create and use an rcu_rdp_cpu_online()

The pattern "rdp->grpmask & rcu_rnp_online_cpus(rnp)" occurs frequently
in RCU code in order to determine whether rdp->cpu is online from an
RCU perspective.  This commit therefore creates an rcu_rdp_cpu_online()
function to replace it.

[ paulmck: Apply kernel test robot unused-variable feedback. ]

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.c
kernel/rcu/tree_plugin.h