sched: Update tg->shares after cpu.shares write
authorPaul Turner <pjt@google.com>
Mon, 15 Nov 2010 23:47:10 +0000 (15:47 -0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 18 Nov 2010 12:27:50 +0000 (13:27 +0100)
commit9437178f623a19af5951808d880a8599f66ac150
treea2f315092f0b7b31cf023a82175c6cf68fd5e04c
parentd6b5591829bd348a5fbe1c428d28dea00621cdba
sched: Update tg->shares after cpu.shares write

Formerly sched_group_set_shares would force a rebalance by overflowing domain
share sums.  Now that per-cpu averages are maintained we can set the true value
by issuing an update_cfs_shares() following a tg->shares update.

Also initialize tg se->load to 0 for consistency since we'll now set correct
weights on enqueue.

Signed-off-by: Paul Turner <pjt@google.com?>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20101115234938.465521344@google.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c