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:
Viresh Kumar
2016-06-27 09:59:34 +05:30
committed by Rafael J. Wysocki
parent da0c6dc00c
commit 825773609c
5 changed files with 10 additions and 20 deletions

View File

@@ -91,8 +91,8 @@ static unsigned int amd_powersave_bias_target(struct cpufreq_policy *policy,
else {
unsigned int index;
index = cpufreq_frequency_table_target(policy,
policy->cur - 1, CPUFREQ_RELATION_H);
index = cpufreq_table_find_index_h(policy,
policy->cur - 1);
freq_next = policy->freq_table[index].frequency;
}