@@ -270,8 +270,8 @@ config RCU_NOCB_CPU_DEFAULT_ALL
default n
help
Use this option to offload callback processing from all CPUs
- by default, in the absence of the rcu_nocbs or nohz_full boot
- parameter. This also avoids the need to use any boot parameters
+ by default, in the absence of the rcu_nocbs boot parameter.
+ This also avoids the need to use any boot parameters
to achieve the effect of offloading all CPUs on boot.
Say Y here if you want offload all CPUs by default on boot.
@@ -1219,7 +1219,7 @@ void __init rcu_init_nohz(void)
#endif
#if defined(CONFIG_RCU_NOCB_CPU_DEFAULT_ALL)
- if (!rcu_state.nocb_is_setup && !cpumask)
+ if (!rcu_state.nocb_is_setup)
cpumask = cpu_possible_mask;
#endif
Offload callback processing from all CPUs as long as there is no "rcu_nocbs=" boot parameter. This also means: whether CONFIG_RCU_NOCB_CPU_DEFAULT_ALL=y takes effect does not depend on the absence of "nohz_full=". Suggested-by: Frederic Weisbecker <frederic@kernel.org> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> --- kernel/rcu/Kconfig | 4 ++-- kernel/rcu/tree_nocb.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)