aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/sched.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index c4bc8c210958..b387a8de26a5 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -1831,6 +1831,7 @@ static int try_to_wake_up(struct task_struct *p, unsigned int state, int sync)
1831 long old_state; 1831 long old_state;
1832 struct rq *rq; 1832 struct rq *rq;
1833 1833
1834 smp_wmb();
1834 rq = task_rq_lock(p, &flags); 1835 rq = task_rq_lock(p, &flags);
1835 old_state = p->state; 1836 old_state = p->state;
1836 if (!(old_state & state)) 1837 if (!(old_state & state))