diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2010-05-06 14:42:52 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2010-05-07 01:23:21 -0400 |
commit | fc390cde362309f6892bb719194f242c466a978b (patch) | |
tree | 07bfb72fb4eff28cc515a0ff5b2d1571db4f4b69 /kernel/sched.c | |
parent | cc631fb732b8ccd6a0cc45557475ea09b0c21a68 (diff) |
rcu: need barrier() in UP synchronize_sched_expedited()
If synchronize_sched_expedited() is ever to be called from within
kernel/sched.c in a !SMP PREEMPT kernel, the !SMP implementation needs
a barrier().
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 155a16d52146..fbaf3128d010 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -8932,6 +8932,7 @@ struct cgroup_subsys cpuacct_subsys = { | |||
8932 | 8932 | ||
8933 | void synchronize_sched_expedited(void) | 8933 | void synchronize_sched_expedited(void) |
8934 | { | 8934 | { |
8935 | barrier(); | ||
8935 | } | 8936 | } |
8936 | EXPORT_SYMBOL_GPL(synchronize_sched_expedited); | 8937 | EXPORT_SYMBOL_GPL(synchronize_sched_expedited); |
8937 | 8938 | ||