diff mbox series

[v6,2/2] rcu: Offload callback processing from all CPUs in the absence of rcu_nocbs=

Message ID 20220901131436.986-3-thunder.leizhen@huawei.com (mailing list archive)
State New, archived
Headers show
Series rcu/nocb: Delete local variable 'need_rcu_nocb_mask' in rcu_init_nohz() | expand

Commit Message

Zhen Lei Sept. 1, 2022, 1:14 p.m. UTC
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(-)
diff mbox series

Patch

diff --git a/kernel/rcu/Kconfig b/kernel/rcu/Kconfig
index d471d22a5e21b43..35b94f5f6767f00 100644
--- a/kernel/rcu/Kconfig
+++ b/kernel/rcu/Kconfig
@@ -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.
diff --git a/kernel/rcu/tree_nocb.h b/kernel/rcu/tree_nocb.h
index 8b6dceeabde0b4d..cfbdd78d6c33158 100644
--- a/kernel/rcu/tree_nocb.h
+++ b/kernel/rcu/tree_nocb.h
@@ -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