diff options
author | Paul E. McKenney <paul.mckenney@linaro.org> | 2012-12-30 16:06:35 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2013-03-26 11:04:56 -0400 |
commit | 8b425aa8f1acfe48aed919c7aadff2ed290fe969 (patch) | |
tree | 355c435f747bda4c4051bf2a0e4f88596d7055e2 /kernel/rcutree.h | |
parent | b8462084a2a88a6a0489f9bb7d8b1bb95bc455ab (diff) |
rcu: Rename n_nocb_gp_requests to need_future_gp
CPUs going idle need to be able to indicate their need for future grace
periods. A mechanism for doing this already exists for no-callbacks
CPUs, so the idea is to re-use that mechanism. This commit therefore
moves the ->n_nocb_gp_requests field of the rcu_node structure out from
under the CONFIG_RCU_NOCB_CPU #ifdef and renames it to ->need_future_gp.
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcutree.h')
-rw-r--r-- | kernel/rcutree.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/rcutree.h b/kernel/rcutree.h index 96a27f922e92..034b524594bd 100644 --- a/kernel/rcutree.h +++ b/kernel/rcutree.h | |||
@@ -194,9 +194,9 @@ struct rcu_node { | |||
194 | #ifdef CONFIG_RCU_NOCB_CPU | 194 | #ifdef CONFIG_RCU_NOCB_CPU |
195 | wait_queue_head_t nocb_gp_wq[2]; | 195 | wait_queue_head_t nocb_gp_wq[2]; |
196 | /* Place for rcu_nocb_kthread() to wait GP. */ | 196 | /* Place for rcu_nocb_kthread() to wait GP. */ |
197 | int n_nocb_gp_requests[2]; | ||
198 | /* Counts of upcoming no-CB GP requests. */ | ||
199 | #endif /* #ifdef CONFIG_RCU_NOCB_CPU */ | 197 | #endif /* #ifdef CONFIG_RCU_NOCB_CPU */ |
198 | int need_future_gp[2]; | ||
199 | /* Counts of upcoming no-CB GP requests. */ | ||
200 | raw_spinlock_t fqslock ____cacheline_internodealigned_in_smp; | 200 | raw_spinlock_t fqslock ____cacheline_internodealigned_in_smp; |
201 | } ____cacheline_internodealigned_in_smp; | 201 | } ____cacheline_internodealigned_in_smp; |
202 | 202 | ||