sched: Fix nr_uninterruptible count
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 26 Mar 2010 11:22:14 +0000 (12:22 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Sep 2010 20:18:09 +0000 (13:18 -0700)
commitbea226b8e646ddb0bd262fc666b741134b9e9612
tree60425e1cb0092d62560e6a34c3aab3eed7f15306
parent6975fc131cbca470ddabd070c911a94aaad75ea3
sched: Fix nr_uninterruptible count

commit cc87f76a601d2d256118f7bab15e35254356ae21 upstream

The cpuload calculation in calc_load_account_active() assumes
rq->nr_uninterruptible will not change on an offline cpu after
migrate_nr_uninterruptible(). However the recent migrate on wakeup
changes broke that and would result in decrementing the offline cpu's
rq->nr_uninterruptible.

Fix this by accounting the nr_uninterruptible on the waking cpu.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
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>
kernel/sched.c