]> git.baikalelectronics.ru Git - kernel.git/commit
sched/fair: Fix the group_capacity computation
authorPeter Zijlstra <peterz@infradead.org>
Wed, 28 Aug 2013 10:40:38 +0000 (12:40 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 12 Sep 2013 17:14:45 +0000 (19:14 +0200)
commit512ba3d81c1df18973c606016b3b122f01896736
treeadb3eeb373d200bf18de15687692afc82f117747
parent2fea7f3a266435dc700dac99a46e8c0ab8dc568d
sched/fair: Fix the group_capacity computation

Do away with 'phantom' cores due to N*frac(smt_power) >= 1 by limiting
the capacity to the actual number of cores.

The assumption of 1 < smt_power < 2 is an actual requirement because
of what SMT is so this should work regardless of the SMT
implementation.

It can still be defeated by creative use of cpu hotplug, but if you're
one of those freaks, you get to live with it.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Vincent Guittot <vincent.guitto@linaro.org>
Link: http://lkml.kernel.org/n/tip-dczmbi8tfgixacg1ji2av1un@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c