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

Commit 42456fdf authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents cdc16313 00319840
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -137,15 +137,14 @@ 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;

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

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