Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efcad24c authored by Syed Rameez Mustafa's avatar Syed Rameez Mustafa Committed by Steve Muckle
Browse files

Revert "sched: Influence cpu_power based on max_freq and efficiency"



This reverts commit 0951ec0f ("sched:
Influence cpu_power based on max_freq and efficiency") to let all cpus
be seen at same 'cpu_power' from load balance perspective. Without
this revert, some cpus will be seen to have more 'cpu_power' than
others, causing tasks to incur wait-time despite availability of idle
cpus. This happens because a cpu with low 'cpu_power' can fail to see
imbalance with another cpu having higher 'cpu_power' and thus can go
idle without pulling any work.

Change-Id: Iccb34319c527d5b45f29c2d12d2ebc7acdd9d07e
Signed-off-by: default avatarSyed Rameez Mustafa <rameezmustafa@codeaurora.org>
parent df91ad27
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -5563,7 +5563,7 @@ static inline int get_sd_load_idx(struct sched_domain *sd,

static unsigned long default_scale_freq_power(struct sched_domain *sd, int cpu)
{
	return capacity_scale_cpu_freq(cpu);
	return SCHED_POWER_SCALE;
}

unsigned long __weak arch_scale_freq_power(struct sched_domain *sd, int cpu)
@@ -5632,9 +5632,6 @@ static void update_cpu_power(struct sched_domain *sd, int cpu)

	sdg->sgp->power_orig = power;

	power *= capacity_scale_cpu_efficiency(cpu);
	power >>= SCHED_POWER_SHIFT;

	if (sched_feat(ARCH_POWER))
		power *= arch_scale_freq_power(sd, cpu);
	else