aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2010-05-06 14:42:52 -0400
committerTejun Heo <tj@kernel.org>2010-05-07 01:23:21 -0400
commitfc390cde362309f6892bb719194f242c466a978b (patch)
tree07bfb72fb4eff28cc515a0ff5b2d1571db4f4b69 /kernel/sched.c
parentcc631fb732b8ccd6a0cc45557475ea09b0c21a68 (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.c1
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
8933void synchronize_sched_expedited(void) 8933void synchronize_sched_expedited(void)
8934{ 8934{
8935 barrier();
8935} 8936}
8936EXPORT_SYMBOL_GPL(synchronize_sched_expedited); 8937EXPORT_SYMBOL_GPL(synchronize_sched_expedited);
8937 8938