Commit 416eb395 authored by Ingo Molnar's avatar Ingo Molnar

sched: Make warning less noisy

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
LKML-Reference: <20091216170517.807938893@chello.nl>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 738d2be4
...@@ -2041,7 +2041,7 @@ void set_task_cpu(struct task_struct *p, unsigned int new_cpu) ...@@ -2041,7 +2041,7 @@ void set_task_cpu(struct task_struct *p, unsigned int new_cpu)
* We should never call set_task_cpu() on a blocked task, * We should never call set_task_cpu() on a blocked task,
* ttwu() will sort out the placement. * ttwu() will sort out the placement.
*/ */
WARN_ON(p->state != TASK_RUNNING && p->state != TASK_WAKING); WARN_ON_ONCE(p->state != TASK_RUNNING && p->state != TASK_WAKING);
#endif #endif
trace_sched_migrate_task(p, new_cpu); trace_sched_migrate_task(p, new_cpu);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment