summaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2010-05-06 11:42:52 -0700
committerTejun Heo <tj@kernel.org>2010-05-07 07:23:21 +0200
commitfc390cde362309f6892bb719194f242c466a978b (patch)
tree07bfb72fb4eff28cc515a0ff5b2d1571db4f4b69 /kernel/sched.c
parentcc631fb732b8ccd6a0cc45557475ea09b0c21a68 (diff)
downloadlinux-fc390cde362309f6892bb719194f242c466a978b.tar.gz
linux-fc390cde362309f6892bb719194f242c466a978b.tar.bz2
linux-fc390cde362309f6892bb719194f242c466a978b.zip
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 = {
void synchronize_sched_expedited(void)
{
+ barrier();
}
EXPORT_SYMBOL_GPL(synchronize_sched_expedited);