aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/s3c24xx-cpufreq.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2013-09-16 09:26:05 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-09-30 14:18:41 -0400
commit5c40e052bb04381302c748497076b5b4526ed6cb (patch)
tree9209d528f5d9bd729b7600fde268d553cc1ead00 /drivers/cpufreq/s3c24xx-cpufreq.c
parent6a77a1e6429c96be0dab06660b137847e2802806 (diff)
cpufreq: s3cx4xx: call cpufreq_frequency_table_get_attr()
This exposes frequency table of driver to cpufreq core and is required for core to guess what the index for a target frequency is, when it calls cpufreq_frequency_table_target(). And so this driver needs to expose it. 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>
Diffstat (limited to 'drivers/cpufreq/s3c24xx-cpufreq.c')
-rw-r--r--drivers/cpufreq/s3c24xx-cpufreq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/cpufreq/s3c24xx-cpufreq.c b/drivers/cpufreq/s3c24xx-cpufreq.c
index b0f343fcb7ee..f2c872c7bbb2 100644
--- a/drivers/cpufreq/s3c24xx-cpufreq.c
+++ b/drivers/cpufreq/s3c24xx-cpufreq.c
@@ -386,8 +386,10 @@ static int s3c_cpufreq_init(struct cpufreq_policy *policy)
386 /* feed the latency information from the cpu driver */ 386 /* feed the latency information from the cpu driver */
387 policy->cpuinfo.transition_latency = cpu_cur.info->latency; 387 policy->cpuinfo.transition_latency = cpu_cur.info->latency;
388 388
389 if (ftab) 389 if (ftab) {
390 cpufreq_frequency_table_cpuinfo(policy, ftab); 390 cpufreq_frequency_table_cpuinfo(policy, ftab);
391 cpufreq_frequency_table_get_attr(ftab, policy->cpu);
392 }
391 393
392 return 0; 394 return 0;
393} 395}