diff options
author | Paul E. McKenney <paul.mckenney@linaro.org> | 2012-05-29 06:03:37 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2012-07-02 15:33:22 -0400 |
commit | 7db74df88b52844f4e966901e2972bba725e6766 (patch) | |
tree | ccb2139d2c4628591287bf456ede1164cef43d0f /kernel/rcutree.h | |
parent | 24ebbca8ecdd5129d7f829a7cb5146aaeb531f77 (diff) |
rcu: Move rcu_barrier_completion 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_completion global variable to a new ->barrier_completion
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/rcutree.h b/kernel/rcutree.h index c57ef0b7f097..d1ca4424122b 100644 --- a/kernel/rcutree.h +++ b/kernel/rcutree.h | |||
@@ -401,6 +401,7 @@ struct rcu_state { | |||
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 | atomic_t barrier_cpu_count; /* # CPUs waiting on. */ |
404 | struct completion barrier_completion; /* Wake at barrier end. */ | ||
404 | raw_spinlock_t fqslock; /* Only one task forcing */ | 405 | raw_spinlock_t fqslock; /* Only one task forcing */ |
405 | /* quiescent states. */ | 406 | /* quiescent states. */ |
406 | unsigned long jiffies_force_qs; /* Time at which to invoke */ | 407 | unsigned long jiffies_force_qs; /* Time at which to invoke */ |