Merge back earlier 'pm-cpufreq' material.
authorRafael J. Wysocki <rjw@rjwysocki.net>
Fri, 25 Oct 2013 20:36:40 +0000 (22:36 +0200)
committerRafael J. Wysocki <rjw@rjwysocki.net>
Fri, 25 Oct 2013 20:36:40 +0000 (22:36 +0200)
Conflicts:
drivers/cpufreq/omap-cpufreq.c

1  2 
drivers/cpufreq/arm_big_little.c
drivers/cpufreq/cpufreq-cpu0.c
drivers/cpufreq/exynos5440-cpufreq.c
drivers/cpufreq/imx6q-cpufreq.c
drivers/cpufreq/intel_pstate.c
drivers/cpufreq/omap-cpufreq.c
drivers/cpufreq/s3c64xx-cpufreq.c
drivers/cpufreq/spear-cpufreq.c

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -173,20 -166,14 +166,14 @@@ static int omap_cpu_init(struct cpufreq
        if (IS_ERR(mpu_clk))
                return PTR_ERR(mpu_clk);
  
-       if (policy->cpu >= NR_CPUS) {
-               result = -EINVAL;
-               goto fail_ck;
-       }
-       policy->cur = omap_getspeed(policy->cpu);
-       if (!freq_table)
+       if (!freq_table) {
 -              result = opp_init_cpufreq_table(mpu_dev, &freq_table);
 +              result = dev_pm_opp_init_cpufreq_table(mpu_dev, &freq_table);
-       if (result) {
-               dev_err(mpu_dev, "%s: cpu%d: failed creating freq table[%d]\n",
+               if (result) {
+                       dev_err(mpu_dev,
+                               "%s: cpu%d: failed creating freq table[%d]\n",
                                __func__, policy->cpu, result);
-               goto fail_ck;
+                       goto fail;
+               }
        }
  
        atomic_inc_return(&freq_table_users);
Simple merge
Simple merge