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

cpufreq: sfi: 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 sfi driver.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Viresh Kumar and committed by
Rafael J. Wysocki
54a277eb 472ada60

+2 -1
+2 -1
drivers/cpufreq/sfi-cpufreq.c
··· 72 72 { 73 73 policy->shared_type = CPUFREQ_SHARED_TYPE_HW; 74 74 policy->cpuinfo.transition_latency = 100000; /* 100us */ 75 + policy->freq_table = freq_table; 75 76 76 - return cpufreq_table_validate_and_show(policy, freq_table); 77 + return 0; 77 78 } 78 79 79 80 static struct cpufreq_driver sfi_cpufreq_driver = {