aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutree.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paul.mckenney@linaro.org>2012-05-29 03:34:56 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2012-07-02 15:33:22 -0400
commit24ebbca8ecdd5129d7f829a7cb5146aaeb531f77 (patch)
treeb7a4bb8044dcd1e13119113c77d2a4b96ba25a43 /kernel/rcutree.h
parent06668efa9180f4824fe846a8ff96338c18646bc7 (diff)
rcu: Move rcu_barrier_cpu_count to rcu_state structure
In order to allow each RCU flavor to concurrently execute its rcu_barrier() function, it is necessary to move the relevant state to the rcu_state structure. This commit therefore moves the rcu_barrier_cpu_count global variable to a new ->barrier_cpu_count field in the rcu_state structure. Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'kernel/rcutree.h')
-rw-r--r--kernel/rcutree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/rcutree.h b/kernel/rcutree.h
index 586d93c978f2..c57ef0b7f097 100644
--- a/kernel/rcutree.h
+++ b/kernel/rcutree.h
@@ -400,6 +400,7 @@ struct rcu_state {
400 struct task_struct *rcu_barrier_in_progress; 400 struct task_struct *rcu_barrier_in_progress;
401 /* Task doing rcu_barrier(), */ 401 /* Task doing rcu_barrier(), */
402 /* or NULL if no barrier. */ 402 /* or NULL if no barrier. */
403 atomic_t barrier_cpu_count; /* # CPUs waiting on. */
403 raw_spinlock_t fqslock; /* Only one task forcing */ 404 raw_spinlock_t fqslock; /* Only one task forcing */
404 /* quiescent states. */ 405 /* quiescent states. */
405 unsigned long jiffies_force_qs; /* Time at which to invoke */ 406 unsigned long jiffies_force_qs; /* Time at which to invoke */