Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86254
b: refs/heads/master
c: 04e2f17
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Feb 24, 2008
1 parent cd67282 commit ac49629
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0a3716eb04ccfdbef6e872a343ba7ce309237e79
refs/heads/master: 04e2f1741d235ba599037734878d72e57cb302b5
1 change: 1 addition & 0 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1831,6 +1831,7 @@ static int try_to_wake_up(struct task_struct *p, unsigned int state, int sync)
long old_state;
struct rq *rq;

smp_wmb();
rq = task_rq_lock(p, &flags);
old_state = p->state;
if (!(old_state & state))
Expand Down

0 comments on commit ac49629

Please sign in to comment.