Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 178043
b: refs/heads/master
c: 077614e
h: refs/heads/master
i:
  178041: 0027311
  178039: ca80a35
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Dec 17, 2009
1 parent e964203 commit fb92ef7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e1781538cf5c870ab696e9b8f0a5c498d3900f2f
refs/heads/master: 077614ee1e93245a3b9a4e1213659405dbeb0ba6
3 changes: 2 additions & 1 deletion trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -2041,7 +2041,8 @@ void set_task_cpu(struct task_struct *p, unsigned int new_cpu)
* We should never call set_task_cpu() on a blocked task,
* ttwu() will sort out the placement.
*/
WARN_ON_ONCE(p->state != TASK_RUNNING && p->state != TASK_WAKING);
WARN_ON_ONCE(p->state != TASK_RUNNING && p->state != TASK_WAKING &&
!(task_thread_info(p)->preempt_count & PREEMPT_ACTIVE));
#endif

trace_sched_migrate_task(p, new_cpu);
Expand Down

0 comments on commit fb92ef7

Please sign in to comment.