diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2016-06-27 07:29:34 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-07-07 01:14:27 +0300 |
commit | 825773609c8ae34a19d4b593555493ae2754eff7 (patch) | |
tree | ecf8c5ed90f21878a66d795aa6be0222c08fe247 /drivers/cpufreq/amd_freq_sensitivity.c | |
parent | da0c6dc00c69d0adaae99c3b3d2ea0c869a3fb35 (diff) | |
download | linux-825773609c8ae34a19d4b593555493ae2754eff7.tar.xz |
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>
Diffstat (limited to 'drivers/cpufreq/amd_freq_sensitivity.c')
-rw-r--r-- | drivers/cpufreq/amd_freq_sensitivity.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/cpufreq/amd_freq_sensitivity.c b/drivers/cpufreq/amd_freq_sensitivity.c index 6d5dc04c3a37..042023bbbf62 100644 --- a/drivers/cpufreq/amd_freq_sensitivity.c +++ b/drivers/cpufreq/amd_freq_sensitivity.c @@ -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; } |