diff options
author | Jonghwan Choi <jhbird.choi@samsung.com> | 2013-01-18 14:09:01 -0500 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2013-01-18 14:09:01 -0500 |
commit | 6e45eb12fd1c741d556bf264ee98853b5f3104e5 (patch) | |
tree | affdd16a59c901684f96fd76f08edc6705597d9d /drivers/cpufreq | |
parent | 1298271b03be167f455303cd9146ba1b771028d8 (diff) |
cpufreq: exynos: Get booting freq value in exynos_cpufreq_init
Boot_freq is for saving booting freq. But exynos_cpufreq_cpu_init
is called in hotplug. If boot_freq is existed in exynos_cpufreq_cpu_init,
boot_freq could be changed.
Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/exynos-cpufreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/cpufreq/exynos-cpufreq.c b/drivers/cpufreq/exynos-cpufreq.c index 2183e9a24c2d..0840358bf3bc 100644 --- a/drivers/cpufreq/exynos-cpufreq.c +++ b/drivers/cpufreq/exynos-cpufreq.c | |||
@@ -246,8 +246,6 @@ static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy) | |||
246 | 246 | ||
247 | cpufreq_frequency_table_get_attr(exynos_info->freq_table, policy->cpu); | 247 | cpufreq_frequency_table_get_attr(exynos_info->freq_table, policy->cpu); |
248 | 248 | ||
249 | locking_frequency = exynos_getspeed(0); | ||
250 | |||
251 | /* set the transition latency value */ | 249 | /* set the transition latency value */ |
252 | policy->cpuinfo.transition_latency = 100000; | 250 | policy->cpuinfo.transition_latency = 100000; |
253 | 251 | ||
@@ -325,6 +323,8 @@ static int __init exynos_cpufreq_init(void) | |||
325 | goto err_vdd_arm; | 323 | goto err_vdd_arm; |
326 | } | 324 | } |
327 | 325 | ||
326 | locking_frequency = exynos_getspeed(0); | ||
327 | |||
328 | register_pm_notifier(&exynos_cpufreq_nb); | 328 | register_pm_notifier(&exynos_cpufreq_nb); |
329 | 329 | ||
330 | if (cpufreq_register_driver(&exynos_driver)) { | 330 | if (cpufreq_register_driver(&exynos_driver)) { |