[RFCv3,03/48] sched: remove frequency scaling from cpu_capacity

Message ID 1423074685-6336-4-git-send-email-morten.rasmussen@arm.com
State New
Headers show

Commit Message

Morten Rasmussen Feb. 4, 2015, 6:30 p.m.
From: Vincent Guittot <vincent.guittot@linaro.org>

Now that arch_scale_cpu_capacity has been introduced to scale the original
capacity, the arch_scale_freq_capacity is no longer used (it was
previously used by ARM arch). Remove arch_scale_freq_capacity from the
computation of cpu_capacity. The frequency invariance will be handled in the
load tracking and not in the CPU capacity. arch_scale_freq_capacity will be
revisited for scaling load with the current frequency of the CPUs in a later

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Acked-by: Morten Rasmussen <morten.rasmussen@arm.com>
 kernel/sched/fair.c | 7 -------
 1 file changed, 7 deletions(-)


diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index fad93d8..35fd296 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -6030,13 +6030,6 @@  static void update_cpu_capacity(struct sched_domain *sd, int cpu)
 	sdg->sgc->capacity_orig = capacity;
-	if (sched_feat(ARCH_CAPACITY))
-		capacity *= arch_scale_freq_capacity(sd, cpu);
-	else
-		capacity *= default_scale_capacity(sd, cpu);
-	capacity >>= SCHED_CAPACITY_SHIFT;
 	capacity *= scale_rt_capacity(cpu);
 	capacity >>= SCHED_CAPACITY_SHIFT;