Skip to contentSkip to conversation

EXYNOS: Initialize locking_frequency with initial frequency

PATCH 함명주 1 participant 1 message Feb 9, 2012 Arm Samsung Exynos

lore
Share & tools
lore

함명주

author Acked-by
#0 lore raw
Quoted 6 lines · Tushar Behera
Quoted 5 lines · Tushar Behera
Quoted 4 lines

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.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

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

Quoted 27 lines
Quoted 21 lines
Quoted 19 lines

---
The patch is based on v3.3-rc1.

 drivers/cpufreq/exynos-cpufreq.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/cpufreq/exynos-cpufreq.c +2 -0
index 5467879..7cfb516 100644
@@ -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;
 
Signature · 1 line
Tushar Behera