summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/s5pv210-cpufreq.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2016-06-27 09:59:34 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-07-07 00:14:27 +0200
commit825773609c8ae34a19d4b593555493ae2754eff7 (patch)
treeecf8c5ed90f21878a66d795aa6be0222c08fe247 /drivers/cpufreq/s5pv210-cpufreq.c
parentda0c6dc00c69d0adaae99c3b3d2ea0c869a3fb35 (diff)
downloadlinux-stable-825773609c8ae34a19d4b593555493ae2754eff7.tar.gz
linux-stable-825773609c8ae34a19d4b593555493ae2754eff7.tar.bz2
linux-stable-825773609c8ae34a19d4b593555493ae2754eff7.zip
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/s5pv210-cpufreq.c')
-rw-r--r--drivers/cpufreq/s5pv210-cpufreq.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/cpufreq/s5pv210-cpufreq.c b/drivers/cpufreq/s5pv210-cpufreq.c
index 4f4e9df9b7fc..9e07588ea9f5 100644
--- a/drivers/cpufreq/s5pv210-cpufreq.c
+++ b/drivers/cpufreq/s5pv210-cpufreq.c
@@ -246,8 +246,7 @@ static int s5pv210_target(struct cpufreq_policy *policy, unsigned int index)
new_freq = s5pv210_freq_table[index].frequency;
/* Finding current running level index */
- priv_index = cpufreq_frequency_table_target(policy, old_freq,
- CPUFREQ_RELATION_H);
+ priv_index = cpufreq_table_find_index_h(policy, old_freq);
arm_volt = dvs_conf[index].arm_volt;
int_volt = dvs_conf[index].int_volt;