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

Commit b90c678d authored by Pavankumar Kondeti's avatar Pavankumar Kondeti Committed by Gerrit - the friendly Code Review server
Browse files

cpufreq: qcom-hw: Update freq_scale from fast_switch path



The freq_scale maintained by the topology driver needs to be
updated when the frequency is transitioned. Without this,
the current capacity of a CPU metric gets broken in the scheduler.

The current code calls arch_set_freq_scale() from the target_index
method but not from the fast_switch method. Fix this.

Change-Id: I92cafba9ffd4a70c8a06ed54e4e410336de4d453
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: default avatarTaniya Das <tdas@codeaurora.org>
parent 11ee5d69
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -135,7 +135,8 @@ qcom_cpufreq_hw_fast_switch(struct cpufreq_policy *policy,
	if (index < 0)
		return 0;

	writel_relaxed(index, c->reg_bases[REG_PERF_STATE]);
	if (qcom_cpufreq_hw_target_index(policy, index))
		return 0;

	return policy->freq_table[index].frequency;
}