diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2016-06-27 09:59:34 +0530 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-07-07 00:14:27 +0200 |
commit | 825773609c8ae34a19d4b593555493ae2754eff7 (patch) | |
tree | ecf8c5ed90f21878a66d795aa6be0222c08fe247 /drivers/cpufreq/powernv-cpufreq.c | |
parent | da0c6dc00c69d0adaae99c3b3d2ea0c869a3fb35 (diff) | |
download | linux-825773609c8ae34a19d4b593555493ae2754eff7.tar.gz linux-825773609c8ae34a19d4b593555493ae2754eff7.tar.bz2 linux-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/powernv-cpufreq.c')
-rw-r--r-- | drivers/cpufreq/powernv-cpufreq.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/cpufreq/powernv-cpufreq.c b/drivers/cpufreq/powernv-cpufreq.c index b29c5c20c3a1..2a2920c4fdf9 100644 --- a/drivers/cpufreq/powernv-cpufreq.c +++ b/drivers/cpufreq/powernv-cpufreq.c @@ -760,8 +760,7 @@ void powernv_cpufreq_work_fn(struct work_struct *work) struct cpufreq_policy policy; cpufreq_get_policy(&policy, cpu); - index = cpufreq_frequency_table_target(&policy, policy.cur, - CPUFREQ_RELATION_C); + index = cpufreq_table_find_index_c(&policy, policy.cur); powernv_cpufreq_target_index(&policy, index); cpumask_andnot(&mask, &mask, policy.cpus); } |