Skip to contentSkip to conversation

cpufreq: exynos: Get booting freq value in exynos_cpufreq_init

PATCH Applied Jonghwan Choi 2 participants 2 messages Jan 7, 2013 – Jan 18, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/cpufreq/exynos-cpufreq.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/drivers/cpufreq/exynos-cpufreq.c
index 7012ea8..41fc550 100644

drivers/cpufreq/exynos-cpufreq.c +0 -0
@@ -222,8 +222,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;

@@ -288,6 +286,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)) {

Signature · 1 line
1.7.4.1
Applied
#1 lore raw
Quoted 37 lines · Jonghwan Choi

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.

---
 drivers/cpufreq/exynos-cpufreq.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/cpufreq/exynos-cpufreq.c +0 -0
index 7012ea8..41fc550 100644
@@ -222,8 +222,6 @@ static int exynos_cpufreq_cpu_init(struct

cpufreq_policy
*policy)

cpufreq_frequency_table_get_attr(exynos_info->freq_table,
policy->cpu);

drivers/cpufreq/exynos-cpufreq.c +2 -3
-	locking_frequency = exynos_getspeed(0);
-
 	/* set the transition latency value */
 	policy->cpuinfo.transition_latency = 100000;
@@ -288,6 +286,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)) {
--
Quoted 1 line

1.7.4.1

Applied, thanks.

- Kukjin