mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
sched: Make warning less noisy
commit 416eb39556 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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
854c984012
commit
07ad010640
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user