diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-12-17 05:05:49 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-17 05:05:49 (GMT) |
commit | 416eb39556a03d1c7e52b0791e9052ccd71db241 (patch) | |
tree | 66390e3d4f53721bc643d24d96d5da339f4c34f8 /kernel | |
parent | 738d2be4301007f054541c5c4bf7fb6a361c9b3a (diff) | |
download | linux-416eb39556a03d1c7e52b0791e9052ccd71db241.tar.xz |
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: Ingo Molnar <mingo@elte.hu>
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 8a2bfd3..af7dfa7 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -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, * 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); |