aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcu
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.ibm.com>2019-03-31 19:20:52 -0400
committerPaul E. McKenney <paulmck@linux.ibm.com>2019-08-13 17:32:39 -0400
commit0bdc33daef96a54f9e5799d84f2fbc05d9e5cae3 (patch)
treeaf6ca25c33cf978fc503d410bbf2872b0011c9ac /kernel/rcu
parent0d52a6652f15f6b1155297326de85c07ca421d64 (diff)
rcu/nocb: Rename rcu_organize_nocb_kthreads() local variable
This commit renames rdp_leader to rdp_gp in order to account for the new distinction between callback and grace-period no-CBs kthreads. Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Diffstat (limited to 'kernel/rcu')
-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 e6581a51ff9a..0af36e98e70f 100644
--- a/kernel/rcu/tree_plugin.h
+++ b/kernel/rcu/tree_plugin.h
@@ -2138,7 +2138,7 @@ static void __init rcu_organize_nocb_kthreads(void)
2138 int ls = rcu_nocb_leader_stride; 2138 int ls = rcu_nocb_leader_stride;
2139 int nl = 0; /* Next GP kthread. */ 2139 int nl = 0; /* Next GP kthread. */
2140 struct rcu_data *rdp; 2140 struct rcu_data *rdp;
2141 struct rcu_data *rdp_leader = NULL; /* Suppress misguided gcc warn. */ 2141 struct rcu_data *rdp_gp = NULL; /* Suppress misguided gcc warn. */
2142 struct rcu_data *rdp_prev = NULL; 2142 struct rcu_data *rdp_prev = NULL;
2143 2143
2144 if (!cpumask_available(rcu_nocb_mask)) 2144 if (!cpumask_available(rcu_nocb_mask))
@@ -2159,10 +2159,10 @@ static void __init rcu_organize_nocb_kthreads(void)
2159 /* New GP kthread, set up for CBs & next GP. */ 2159 /* New GP kthread, set up for CBs & next GP. */
2160 nl = DIV_ROUND_UP(rdp->cpu + 1, ls) * ls; 2160 nl = DIV_ROUND_UP(rdp->cpu + 1, ls) * ls;
2161 rdp->nocb_gp_rdp = rdp; 2161 rdp->nocb_gp_rdp = rdp;
2162 rdp_leader = rdp; 2162 rdp_gp = rdp;
2163 } else { 2163 } else {
2164 /* Another CB kthread, link to previous GP kthread. */ 2164 /* Another CB kthread, link to previous GP kthread. */
2165 rdp->nocb_gp_rdp = rdp_leader; 2165 rdp->nocb_gp_rdp = rdp_gp;
2166 rdp_prev->nocb_next_cb_rdp = rdp; 2166 rdp_prev->nocb_next_cb_rdp = rdp;
2167 } 2167 }
2168 rdp_prev = rdp; 2168 rdp_prev = rdp;