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

Commit 3883123e authored by Taniya Das's avatar Taniya Das
Browse files

Revert "cpufreq: qcom-hw: Update freq_scale from fast_switch path"



This reverts commit 00319840.

Change-Id: I76c0148b828753a0c6cffceef40a98f5c6e11701
Signed-off-by: default avatarTaniya Das <tdas@codeaurora.org>
parent a7d847f5
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -137,14 +137,15 @@ static unsigned int
qcom_cpufreq_hw_fast_switch(struct cpufreq_policy *policy,
			    unsigned int target_freq)
{
	void __iomem *perf_state_reg = policy->driver_data +
					offsets[REG_PERF_STATE];
	int index;

	index = policy->cached_resolved_idx;
	if (index < 0)
		return 0;

	if (qcom_cpufreq_hw_target_index(policy, index))
		return 0;
	writel_relaxed(index, perf_state_reg);

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