diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-08-06 14:31:51 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-09-21 00:16:20 -0400 |
commit | 97c668b8e983b722e2ed765b98b05f644aff1b13 (patch) | |
tree | 98ff9c8a31e2eb957703a0e547dc87e1c1178640 /kernel/rcu/tree_trace.c | |
parent | bce5fa12aad148e15efd9bc0015dc4898b6e723b (diff) |
rcu: Rename qs_pending to core_needs_qs
An upcoming commit needs to invert the sense of the ->passed_quiesce
rcu_data structure field, so this commit is taking this opportunity
to clarify things a bit by renaming ->qs_pending to ->core_needs_qs.
So if !rdp->core_needs_qs, then this CPU need not concern itself with
quiescent states, in particular, it need not acquire its leaf rcu_node
structure's ->lock to check. Otherwise, it needs to report the next
quiescent state.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu/tree_trace.c')
-rw-r--r-- | kernel/rcu/tree_trace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/rcu/tree_trace.c b/kernel/rcu/tree_trace.c index 6fc4c5ff3bb5..4ac25f8520d6 100644 --- a/kernel/rcu/tree_trace.c +++ b/kernel/rcu/tree_trace.c | |||
@@ -123,7 +123,7 @@ static void print_one_rcu_data(struct seq_file *m, struct rcu_data *rdp) | |||
123 | ulong2long(rdp->completed), ulong2long(rdp->gpnum), | 123 | ulong2long(rdp->completed), ulong2long(rdp->gpnum), |
124 | rdp->passed_quiesce, | 124 | rdp->passed_quiesce, |
125 | rdp->rcu_qs_ctr_snap == per_cpu(rcu_qs_ctr, rdp->cpu), | 125 | rdp->rcu_qs_ctr_snap == per_cpu(rcu_qs_ctr, rdp->cpu), |
126 | rdp->qs_pending); | 126 | rdp->core_needs_qs); |
127 | seq_printf(m, " dt=%d/%llx/%d df=%lu", | 127 | seq_printf(m, " dt=%d/%llx/%d df=%lu", |
128 | atomic_read(&rdp->dynticks->dynticks), | 128 | atomic_read(&rdp->dynticks->dynticks), |
129 | rdp->dynticks->dynticks_nesting, | 129 | rdp->dynticks->dynticks_nesting, |
@@ -361,7 +361,7 @@ static void print_one_rcu_pending(struct seq_file *m, struct rcu_data *rdp) | |||
361 | cpu_is_offline(rdp->cpu) ? '!' : ' ', | 361 | cpu_is_offline(rdp->cpu) ? '!' : ' ', |
362 | rdp->n_rcu_pending); | 362 | rdp->n_rcu_pending); |
363 | seq_printf(m, "qsp=%ld rpq=%ld cbr=%ld cng=%ld ", | 363 | seq_printf(m, "qsp=%ld rpq=%ld cbr=%ld cng=%ld ", |
364 | rdp->n_rp_qs_pending, | 364 | rdp->n_rp_core_needs_qs, |
365 | rdp->n_rp_report_qs, | 365 | rdp->n_rp_report_qs, |
366 | rdp->n_rp_cb_ready, | 366 | rdp->n_rp_cb_ready, |
367 | rdp->n_rp_cpu_needs_gp); | 367 | rdp->n_rp_cpu_needs_gp); |