cpufreq: pxa: Don't validate the frequency table twice
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 26 Feb 2018 05:09:00 +0000 (10:39 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 20 Mar 2018 11:07:52 +0000 (12:07 +0100)
The cpufreq core is already validating the CPU frequency table after
calling the ->init() callback of the cpufreq drivers and the drivers
don't need to do the same anymore. Though they need to set the
policy->freq_table field directly from the ->init() callback now.

Stop validating the frequency table from pxa driver.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/pxa2xx-cpufreq.c
drivers/cpufreq/pxa3xx-cpufreq.c

index 06b024a3e474fc6657830b5af1a300d330ab7e8e..46254e5839829cd25971efe1b8d91879e9bb3fc7 100644 (file)
@@ -292,10 +292,10 @@ static int pxa_cpufreq_init(struct cpufreq_policy *policy)
                pr_info("using %s frequency table\n",
                        pxa255_turbo_table ? "turbo" : "run");
 
-               cpufreq_table_validate_and_show(policy, pxa255_freq_table);
+               policy->freq_table = pxa255_freq_table;
        }
        else if (cpu_is_pxa27x()) {
-               cpufreq_table_validate_and_show(policy, pxa27x_freq_table);
+               policy->freq_table = pxa27x_freq_table;
        }
 
        pr_info("frequency change support initialized\n");
index a012759003897e2340baf74b1d1aa3519f99f278..7acc7fa4536dbb58c3b7588b28a1cc9d648da103 100644 (file)
@@ -108,7 +108,9 @@ static int setup_freqs_table(struct cpufreq_policy *policy,
        pxa3xx_freqs_num = num;
        pxa3xx_freqs_table = table;
 
-       return cpufreq_table_validate_and_show(policy, table);
+       policy->freq_table = table;
+
+       return 0;
 }
 
 static void __update_core_freq(struct pxa3xx_freq_info *info)