Skip to content

Commit 64bf55a

Browse files
vireshkrafaeljw
authored andcommitted
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>
1 parent 1aefc75 commit 64bf55a

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

‎Documentation/cpu-freq/core.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ new - new frequency
9696
For details about OPP, see Documentation/power/opp.txt
9797

9898
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
100100
frequencies that are available for operation. This function provides
101101
a ready to use conversion routine to translate the OPP layer's internal
102102
information about the available frequencies into a format readily
@@ -110,7 +110,7 @@ dev_pm_opp_init_cpufreq_table - cpufreq framework typically is initialized with
110110
/* Do things */
111111
r = dev_pm_opp_init_cpufreq_table(dev, &freq_table);
112112
if (!r)
113-
cpufreq_frequency_table_cpuinfo(policy, freq_table);
113+
cpufreq_table_validate_and_show(policy, freq_table);
114114
/* Do other things */
115115
}
116116

‎Documentation/cpu-freq/cpu-drivers.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ if you want to skip one entry in the table, set the frequency to
231231
CPUFREQ_ENTRY_INVALID. The entries don't need to be in ascending
232232
order.
233233

234-
By calling cpufreq_frequency_table_cpuinfo(struct cpufreq_policy *policy,
234+
By calling cpufreq_table_validate_and_show(struct cpufreq_policy *policy,
235235
struct cpufreq_frequency_table *table);
236236
the cpuinfo.min_freq and cpuinfo.max_freq values are detected, and
237237
policy->min and policy->max are set to the same values. This is

‎drivers/cpufreq/freq_table.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ int cpufreq_frequency_table_cpuinfo(struct cpufreq_policy *policy,
6363
else
6464
return 0;
6565
}
66-
EXPORT_SYMBOL_GPL(cpufreq_frequency_table_cpuinfo);
67-
6866

6967
int cpufreq_frequency_table_verify(struct cpufreq_policy *policy,
7068
struct cpufreq_frequency_table *table)

0 commit comments

Comments
 (0)