Skip to content

Commit

Permalink
cpufreq: exynos: Get booting freq value in exynos_cpufreq_init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jonghwan Choi authored and Kukjin Kim committed Jan 18, 2013
1 parent 1298271 commit 6e45eb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/cpufreq/exynos-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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)) {
Expand Down

0 comments on commit 6e45eb1

Please sign in to comment.