sched: Make warning less noisy
authorIngo Molnar <mingo@elte.hu>
Thu, 17 Dec 2009 05:05:49 +0000 (06:05 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Sep 2010 20:18:01 +0000 (13:18 -0700)
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

index a56613015df1f5ee6839ec15c32f5117d481aa98..94b1ca17db3882e98dc2558fa58a765b381b9869 100644 (file)
@@ -2071,7 +2071,7 @@ 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(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);