mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
cpufreq: mediatek-hw: Fix cpufreq_table_find_index_dl() call
The new cpufreq table flag RELATION_E introduced a new "efficient"
parameter for the cpufreq_table_find*() functions.
Fixes: 1f39fa0dcc
(cpufreq: Introducing CPUFREQ_RELATION_E)
Signed-off-by: Vincent Donnefort <vincent.donnefort@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
e458716a92
commit
6215a5de9e
@ -109,7 +109,7 @@ static unsigned int mtk_cpufreq_hw_fast_switch(struct cpufreq_policy *policy,
|
|||||||
struct mtk_cpufreq_data *data = policy->driver_data;
|
struct mtk_cpufreq_data *data = policy->driver_data;
|
||||||
unsigned int index;
|
unsigned int index;
|
||||||
|
|
||||||
index = cpufreq_table_find_index_dl(policy, target_freq);
|
index = cpufreq_table_find_index_dl(policy, target_freq, false);
|
||||||
|
|
||||||
writel_relaxed(index, data->reg_bases[REG_FREQ_PERF_STATE]);
|
writel_relaxed(index, data->reg_bases[REG_FREQ_PERF_STATE]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user