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 <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
This commit is contained in:
Paul E. McKenney 2010-05-06 11:42:52 -07:00 • committed by Tejun Heo
commit fc390cde36

View file

@ -8932,6 +8932,7 @@ struct cgroup_subsys cpuacct_subsys = {
void synchronize_sched_expedited(void)
{
barrier();
}
EXPORT_SYMBOL_GPL(synchronize_sched_expedited);