projects
/
unionfs-2.6.39.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
738d2be
)
sched: Make warning less noisy
author
Ingo Molnar
<mingo@elte.hu>
Thu, 17 Dec 2009 05:05:49 +0000
(06:05 +0100)
committer
Ingo Molnar
<mingo@elte.hu>
Thu, 17 Dec 2009 05:05:49 +0000
(06:05 +0100)
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>
kernel/sched.c
patch
|
blob
|
history
diff --git
a/kernel/sched.c
b/kernel/sched.c
index 8a2bfd37ab4f2c5323b8c0de8d0448116091532c..af7dfa74e6bbcbe604be3a7bc1b5c8bed8cc33a9 100644
(file)
--- 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);