cpufreq: Reuse new freq-table helpers
This patch migrates few users of cpufreq tables to the new helpers that work on sorted freq-tables. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:

committed by
Rafael J. Wysocki

parent
da0c6dc00c
commit
825773609c
@@ -85,11 +85,9 @@ static unsigned int generic_powersave_bias_target(struct cpufreq_policy *policy,
|
||||
freq_avg = freq_req - freq_reduc;
|
||||
|
||||
/* Find freq bounds for freq_avg in freq_table */
|
||||
index = cpufreq_frequency_table_target(policy, freq_avg,
|
||||
CPUFREQ_RELATION_H);
|
||||
index = cpufreq_table_find_index_h(policy, freq_avg);
|
||||
freq_lo = freq_table[index].frequency;
|
||||
index = cpufreq_frequency_table_target(policy, freq_avg,
|
||||
CPUFREQ_RELATION_L);
|
||||
index = cpufreq_table_find_index_l(policy, freq_avg);
|
||||
freq_hi = freq_table[index].frequency;
|
||||
|
||||
/* Find out how long we have to be in hi and lo freqs */
|
||||
|
Reference in New Issue
Block a user