aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcu/tree_plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/rcu/tree_plugin.h')
-rw-r--r--kernel/rcu/tree_plugin.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h
index 31c7afb611fd..39e68bcf6d83 100644
--- a/kernel/rcu/tree_plugin.h
+++ b/kernel/rcu/tree_plugin.h
@@ -2578,7 +2578,7 @@ static void __init rcu_organize_nocb_kthreads(struct rcu_state *rsp)
2578 struct rcu_data *rdp_leader = NULL; /* Suppress misguided gcc warn. */ 2578 struct rcu_data *rdp_leader = NULL; /* Suppress misguided gcc warn. */
2579 struct rcu_data *rdp_prev = NULL; 2579 struct rcu_data *rdp_prev = NULL;
2580 2580
2581 if (rcu_nocb_mask == NULL) 2581 if (!have_rcu_nocb_mask)
2582 return; 2582 return;
2583 if (ls == -1) { 2583 if (ls == -1) {
2584 ls = int_sqrt(nr_cpu_ids); 2584 ls = int_sqrt(nr_cpu_ids);
@@ -2608,9 +2608,9 @@ static void __init rcu_organize_nocb_kthreads(struct rcu_state *rsp)
2608/* Prevent __call_rcu() from enqueuing callbacks on no-CBs CPUs */ 2608/* Prevent __call_rcu() from enqueuing callbacks on no-CBs CPUs */
2609static bool init_nocb_callback_list(struct rcu_data *rdp) 2609static bool init_nocb_callback_list(struct rcu_data *rdp)
2610{ 2610{
2611 if (rcu_nocb_mask == NULL || 2611 if (!rcu_is_nocb_cpu(rdp->cpu))
2612 !cpumask_test_cpu(rdp->cpu, rcu_nocb_mask))
2613 return false; 2612 return false;
2613
2614 rdp->nxttail[RCU_NEXT_TAIL] = NULL; 2614 rdp->nxttail[RCU_NEXT_TAIL] = NULL;
2615 return true; 2615 return true;
2616} 2616}