]> git.baikalelectronics.ru Git - kernel.git/commit
sched/fair: Fix group power_orig computation
authorPeter Zijlstra <peterz@infradead.org>
Wed, 28 Aug 2013 09:44:39 +0000 (11:44 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 12 Sep 2013 17:14:43 +0000 (19:14 +0200)
commitb596509e7cc8c0639a336b3c5934361234162ea6
tree8b611afc6cbf9e5b4c804157d27a50fa4753e296
parent95ac5fb5dc20fc332b6341c834adddaee5370c2a
sched/fair: Fix group power_orig computation

When looking at the code I noticed we don't actually compute
sgp->power_orig correctly for groups, fix that.

Currently the only consumer of that value is fix_small_capacity()
which is only used on POWER7+ and that code excludes this case by
being limited to SD_SHARE_CPUPOWER which is only ever set on the SMT
domain which must be the lowest domain and this has singleton groups.

So nothing should be affected by this change.

Cc: Michael Neuling <mikey@neuling.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/n/tip-db2pe0vxwunv37plc7onnugj@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c