Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpufreq: scpi: Don't validate the frequency table twice

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 scpi driver.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Tested-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Viresh Kumar and committed by
Rafael J. Wysocki
472ada60 f35750c8

+1 -9
+1 -9
drivers/cpufreq/scpi-cpufreq.c
··· 158 158 } 159 159 160 160 policy->driver_data = priv; 161 - 162 - ret = cpufreq_table_validate_and_show(policy, freq_table); 163 - if (ret) { 164 - dev_err(cpu_dev, "%s: invalid frequency table: %d\n", __func__, 165 - ret); 166 - goto out_put_clk; 167 - } 161 + policy->freq_table = freq_table; 168 162 169 163 /* scpi allows DVFS request for any domain from any CPU */ 170 164 policy->dvfs_possible_from_any_cpu = true; ··· 172 178 policy->fast_switch_possible = false; 173 179 return 0; 174 180 175 - out_put_clk: 176 - clk_put(priv->clk); 177 181 out_free_cpufreq_table: 178 182 dev_pm_opp_free_cpufreq_table(cpu_dev, &freq_table); 179 183 out_free_priv: