summaryrefslogtreecommitdiffstats
path: root/ipc/Makefile
diff options
context:
space:
mode:
authorZhen Lei <thunder.leizhen@huawei.com>2022-09-13 11:00:36 +0800
committerPaul E. McKenney <paulmck@kernel.org>2022-10-18 15:00:36 -0700
commitf1ffec1ea30fdd4c101c78af2be376d8c1cf46b7 (patch)
tree5ab83be166417eafff8f359c85bfa47dfbac064c /ipc/Makefile
parent9abf2313adc1ca1b6180c508c25f22f9395cc780 (diff)
downloadlinux-f1ffec1ea30fdd4c101c78af2be376d8c1cf46b7.tar.bz2
rcu: Simplify rcu_init_nohz() cpumask handling
In kernels built with either CONFIG_RCU_NOCB_CPU_DEFAULT_ALL=y or CONFIG_NO_HZ_FULL=y, additional CPUs must be added to rcu_nocb_mask. Except that kernels booted without the rcu_nocbs= will not have allocated rcu_nocb_mask. And the current rcu_init_nohz() function uses its need_rcu_nocb_mask and offload_all local variables to track the rcu_nocb and nohz_full state. But there is a much simpler approach, namely creating a cpumask pointer to track the default and then using cpumask_available() to check the rcu_nocb_mask state. This commit takes this approach, thereby simplifying and shortening the rcu_init_nohz() function. Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org> Acked-by: Frederic Weisbecker <frederic@kernel.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'ipc/Makefile')
0 files changed, 0 insertions, 0 deletions