]> git.karo-electronics.de Git - linux-beck.git/commitdiff
cpufreq: exynos: don't initialize part of policy set by core
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 3 Oct 2013 14:58:42 +0000 (20:28 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 15 Oct 2013 22:50:29 +0000 (00:50 +0200)
Many common initializations of struct policy are moved to core now and hence
this driver doesn't need to do it. This patch removes such code.

Most recent of those changes is to call ->get() in the core after calling
->init().

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-By: Amit Daniel Kachhap <amit.daniel@samsung.com>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/exynos-cpufreq.c
drivers/cpufreq/exynos5440-cpufreq.c

index 08338d42c77bcdc7b3f36cc2940c0fff9a12e939..5244086bb9ca049b1c9730ffebbef05ccf655a5e 100644 (file)
@@ -241,8 +241,6 @@ static struct notifier_block exynos_cpufreq_nb = {
 
 static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy)
 {
-       policy->cur = policy->min = policy->max = exynos_getspeed(policy->cpu);
-
        /* set the transition latency value */
        policy->cpuinfo.transition_latency = 100000;
 
index bce6f7442aa54983848333b295259cf56faf41ab..9b7fdec19622e536264ce77c898ec6b670d4b985 100644 (file)
@@ -326,7 +326,6 @@ static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy)
                return ret;
        }
 
-       policy->cur = dvfs_info->cur_frequency;
        policy->cpuinfo.transition_latency = dvfs_info->latency;
        cpumask_setall(policy->cpus);