diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-10-31 00:08:53 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-01-06 14:02:40 -0500 |
commit | 74e871ac6cb17f67cbefb569d98a8d05de666e07 (patch) | |
tree | 95705187e3ef7248db69ac90e5a79d6b28930cf6 | |
parent | b08ea27d95bcaee6d9cf4edd64f373006661424a (diff) |
rcu: Rename "empty" to "empty_norm" in preparation for boost rework
This commit undertakes a simple variable renaming to make way for
some rework of RCU priority boosting.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
-rw-r--r-- | kernel/rcu/tree_plugin.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h index d59913ef8360..3d22f0b2dea9 100644 --- a/kernel/rcu/tree_plugin.h +++ b/kernel/rcu/tree_plugin.h | |||
@@ -313,8 +313,8 @@ static struct list_head *rcu_next_node_entry(struct task_struct *t, | |||
313 | */ | 313 | */ |
314 | void rcu_read_unlock_special(struct task_struct *t) | 314 | void rcu_read_unlock_special(struct task_struct *t) |
315 | { | 315 | { |
316 | int empty; | ||
317 | int empty_exp; | 316 | int empty_exp; |
317 | int empty_norm; | ||
318 | int empty_exp_now; | 318 | int empty_exp_now; |
319 | unsigned long flags; | 319 | unsigned long flags; |
320 | struct list_head *np; | 320 | struct list_head *np; |
@@ -367,7 +367,7 @@ void rcu_read_unlock_special(struct task_struct *t) | |||
367 | break; | 367 | break; |
368 | raw_spin_unlock(&rnp->lock); /* irqs remain disabled. */ | 368 | raw_spin_unlock(&rnp->lock); /* irqs remain disabled. */ |
369 | } | 369 | } |
370 | empty = !rcu_preempt_blocked_readers_cgp(rnp); | 370 | empty_norm = !rcu_preempt_blocked_readers_cgp(rnp); |
371 | empty_exp = !rcu_preempted_readers_exp(rnp); | 371 | empty_exp = !rcu_preempted_readers_exp(rnp); |
372 | smp_mb(); /* ensure expedited fastpath sees end of RCU c-s. */ | 372 | smp_mb(); /* ensure expedited fastpath sees end of RCU c-s. */ |
373 | np = rcu_next_node_entry(t, rnp); | 373 | np = rcu_next_node_entry(t, rnp); |
@@ -393,7 +393,7 @@ void rcu_read_unlock_special(struct task_struct *t) | |||
393 | * so we must take a snapshot of the expedited state. | 393 | * so we must take a snapshot of the expedited state. |
394 | */ | 394 | */ |
395 | empty_exp_now = !rcu_preempted_readers_exp(rnp); | 395 | empty_exp_now = !rcu_preempted_readers_exp(rnp); |
396 | if (!empty && !rcu_preempt_blocked_readers_cgp(rnp)) { | 396 | if (!empty_norm && !rcu_preempt_blocked_readers_cgp(rnp)) { |
397 | trace_rcu_quiescent_state_report(TPS("preempt_rcu"), | 397 | trace_rcu_quiescent_state_report(TPS("preempt_rcu"), |
398 | rnp->gpnum, | 398 | rnp->gpnum, |
399 | 0, rnp->qsmask, | 399 | 0, rnp->qsmask, |