[CPUFREQ] EXYNOS: Initialize locking_frequency with initial frequency
authorTushar Behera <tushar.behera@linaro.org>
Wed, 25 Jan 2012 04:45:13 +0000 (10:15 +0530)
committerDave Jones <davej@redhat.com>
Thu, 1 Mar 2012 03:24:38 +0000 (22:24 -0500)
As per definition, locking_frequency is the initial frequency which is
set by boot-loader. Hence the value is updated with the initial value
during boot time init call.

This code was present in exynos210-cpufreq.c before this consolidation
patch.
a125a17fa61a ([CPUFREQ] EXYNOS: Make EXYNOS common cpufreq driver).

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Inderpal Singh <inderpal.singh@linaro.org>
Signed-off-by: Dave Jones <davej@redhat.com>
drivers/cpufreq/exynos-cpufreq.c

index 5467879ea07d9dd60582ffdf44ec88f323c2102e..7cfb51643555dc1a2c5889f26e2306ed1f42df8e 100644 (file)
@@ -210,6 +210,8 @@ 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;