Messages in this thread Patch in this message | | | Date | Sat, 18 Sep 2010 11:58:43 -0700 | From | Greg KH <> | Subject | [079/123] sched: Make warning less noisy |
| |
From: Ingo Molnar <mingo@elte.hu>
commit 416eb39556a03d1c7e52b0791e9052ccd71db241 upstream
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> LKML-Reference: <20091216170517.807938893@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Mike Galbraith <efault@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> --- kernel/sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
--- a/kernel/sched.c +++ b/kernel/sched.c @@ -2071,7 +2071,7 @@ void set_task_cpu(struct task_struct *p, * We should never call set_task_cpu() on a blocked task, * 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 trace_sched_migrate_task(p, new_cpu);
| |