From: Jonghwan Choi Date: Fri, 18 Jan 2013 19:09:01 +0000 (-0800) Subject: cpufreq: exynos: Get booting freq value in exynos_cpufreq_init X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6e45eb12fd1c741d556bf264ee98853b5f3104e5;p=linux-beck.git 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 Signed-off-by: Kukjin Kim --- 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) cpufreq_frequency_table_get_attr(exynos_info->freq_table, policy->cpu); - locking_frequency = exynos_getspeed(0); - /* set the transition latency value */ policy->cpuinfo.transition_latency = 100000; @@ -325,6 +323,8 @@ static int __init exynos_cpufreq_init(void) goto err_vdd_arm; } + locking_frequency = exynos_getspeed(0); + register_pm_notifier(&exynos_cpufreq_nb); if (cpufreq_register_driver(&exynos_driver)) {