sched: Fix TASK_WAKING & loadaverage breakage
authorIngo Molnar <mingo@elte.hu>
Wed, 16 Sep 2009 19:09:13 +0000 (21:09 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Sep 2009 07:51:20 +0000 (09:51 +0200)
commiteb24073bc1fe3e569a855cf38d529fb650c35524
tree1dfc4a556f5b78c59cb1accf96666d3105a1cd78
parent182a85f8a119c789610a9d464f4129ded9f3c107
sched: Fix TASK_WAKING & loadaverage breakage

Fix this:

top - 21:54:00 up  2:59,  1 user,  load average: 432512.33, 426421.74, 417432.74

Which happens because we now set TASK_WAKING before activate_task().

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c