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

cpufreq: Unexport cpufreq_frequency_table_cpuinfo()

All cpufreq drivers with a freq-table are migrated to use
cpufreq_table_validate_and_show() long back and the routine
cpufreq_frequency_table_cpuinfo() isn't used outside of cpufreq core
now.

Unexport it and update Documentation as well.

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
64bf55a7 1aefc75b

+3 -5
+2 -2
Documentation/cpu-freq/core.txt
··· 96 96 For details about OPP, see Documentation/power/opp.txt 97 97 98 98 dev_pm_opp_init_cpufreq_table - cpufreq framework typically is initialized with 99 - cpufreq_frequency_table_cpuinfo which is provided with the list of 99 + cpufreq_table_validate_and_show() which is provided with the list of 100 100 frequencies that are available for operation. This function provides 101 101 a ready to use conversion routine to translate the OPP layer's internal 102 102 information about the available frequencies into a format readily ··· 110 110 /* Do things */ 111 111 r = dev_pm_opp_init_cpufreq_table(dev, &freq_table); 112 112 if (!r) 113 - cpufreq_frequency_table_cpuinfo(policy, freq_table); 113 + cpufreq_table_validate_and_show(policy, freq_table); 114 114 /* Do other things */ 115 115 } 116 116
+1 -1
Documentation/cpu-freq/cpu-drivers.txt
··· 231 231 CPUFREQ_ENTRY_INVALID. The entries don't need to be in ascending 232 232 order. 233 233 234 - By calling cpufreq_frequency_table_cpuinfo(struct cpufreq_policy *policy, 234 + By calling cpufreq_table_validate_and_show(struct cpufreq_policy *policy, 235 235 struct cpufreq_frequency_table *table); 236 236 the cpuinfo.min_freq and cpuinfo.max_freq values are detected, and 237 237 policy->min and policy->max are set to the same values. This is
-2
drivers/cpufreq/freq_table.c
··· 63 63 else 64 64 return 0; 65 65 } 66 - EXPORT_SYMBOL_GPL(cpufreq_frequency_table_cpuinfo); 67 - 68 66 69 67 int cpufreq_frequency_table_verify(struct cpufreq_policy *policy, 70 68 struct cpufreq_frequency_table *table)