diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-09-16 09:26:16 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-09-30 14:18:42 -0400 |
commit | bc574ce9acb476cdd6622c196a81685b8e907de5 (patch) | |
tree | 75220b9d0aa1ce97ccd6be9a465ef32e39e3af68 | |
parent | 55bb85b7aeca1e4a689764cb9f53727313130c7f (diff) |
cpufreq: exynos: use cpufreq_table_validate_and_show()
Lets use cpufreq_table_validate_and_show() instead of calling
cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr().
Cc: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/cpufreq/exynos-cpufreq.c | 4 | ||||
-rw-r--r-- | drivers/cpufreq/exynos5440-cpufreq.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/drivers/cpufreq/exynos-cpufreq.c b/drivers/cpufreq/exynos-cpufreq.c index 0fac34439e31..954baed95899 100644 --- a/drivers/cpufreq/exynos-cpufreq.c +++ b/drivers/cpufreq/exynos-cpufreq.c | |||
@@ -249,14 +249,12 @@ static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy) | |||
249 | { | 249 | { |
250 | policy->cur = policy->min = policy->max = exynos_getspeed(policy->cpu); | 250 | policy->cur = policy->min = policy->max = exynos_getspeed(policy->cpu); |
251 | 251 | ||
252 | cpufreq_frequency_table_get_attr(exynos_info->freq_table, policy->cpu); | ||
253 | |||
254 | /* set the transition latency value */ | 252 | /* set the transition latency value */ |
255 | policy->cpuinfo.transition_latency = 100000; | 253 | policy->cpuinfo.transition_latency = 100000; |
256 | 254 | ||
257 | cpumask_setall(policy->cpus); | 255 | cpumask_setall(policy->cpus); |
258 | 256 | ||
259 | return cpufreq_frequency_table_cpuinfo(policy, exynos_info->freq_table); | 257 | return cpufreq_table_validate_and_show(policy, exynos_info->freq_table); |
260 | } | 258 | } |
261 | 259 | ||
262 | static int exynos_cpufreq_cpu_exit(struct cpufreq_policy *policy) | 260 | static int exynos_cpufreq_cpu_exit(struct cpufreq_policy *policy) |
diff --git a/drivers/cpufreq/exynos5440-cpufreq.c b/drivers/cpufreq/exynos5440-cpufreq.c index be5380ecdcd4..b62967148c80 100644 --- a/drivers/cpufreq/exynos5440-cpufreq.c +++ b/drivers/cpufreq/exynos5440-cpufreq.c | |||
@@ -326,7 +326,7 @@ static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy) | |||
326 | { | 326 | { |
327 | int ret; | 327 | int ret; |
328 | 328 | ||
329 | ret = cpufreq_frequency_table_cpuinfo(policy, dvfs_info->freq_table); | 329 | ret = cpufreq_table_validate_and_show(policy, dvfs_info->freq_table); |
330 | if (ret) { | 330 | if (ret) { |
331 | dev_err(dvfs_info->dev, "Invalid frequency table: %d\n", ret); | 331 | dev_err(dvfs_info->dev, "Invalid frequency table: %d\n", ret); |
332 | return ret; | 332 | return ret; |
@@ -336,8 +336,6 @@ static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy) | |||
336 | policy->cpuinfo.transition_latency = dvfs_info->latency; | 336 | policy->cpuinfo.transition_latency = dvfs_info->latency; |
337 | cpumask_setall(policy->cpus); | 337 | cpumask_setall(policy->cpus); |
338 | 338 | ||
339 | cpufreq_frequency_table_get_attr(dvfs_info->freq_table, policy->cpu); | ||
340 | |||
341 | return 0; | 339 | return 0; |
342 | } | 340 | } |
343 | 341 | ||