diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-12-17 06:05:49 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-09-20 13:18:01 -0700 |
commit | 07ad01064059aa5ac2e174ba519cd6a0c43301fa (patch) | |
tree | 923d8bcb31184c0b4805b71806cb16dc5b0f7c6f /kernel | |
parent | 854c98401284a312d28f3115954ce8965f437df1 (diff) |
sched: Make warning less noisy
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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index a56613015df..94b1ca17db3 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -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); |