mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-26 12:26:11 +00:00
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>
This commit is contained in:
parent
1aefc75b24
commit
64bf55a72f
3 changed files with 3 additions and 5 deletions
|
@ -96,7 +96,7 @@ new - new frequency
|
||||||
For details about OPP, see Documentation/power/opp.txt
|
For details about OPP, see Documentation/power/opp.txt
|
||||||
|
|
||||||
dev_pm_opp_init_cpufreq_table - cpufreq framework typically is initialized with
|
dev_pm_opp_init_cpufreq_table - cpufreq framework typically is initialized with
|
||||||
cpufreq_frequency_table_cpuinfo which is provided with the list of
|
cpufreq_table_validate_and_show() which is provided with the list of
|
||||||
frequencies that are available for operation. This function provides
|
frequencies that are available for operation. This function provides
|
||||||
a ready to use conversion routine to translate the OPP layer's internal
|
a ready to use conversion routine to translate the OPP layer's internal
|
||||||
information about the available frequencies into a format readily
|
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
|
||||||
/* Do things */
|
/* Do things */
|
||||||
r = dev_pm_opp_init_cpufreq_table(dev, &freq_table);
|
r = dev_pm_opp_init_cpufreq_table(dev, &freq_table);
|
||||||
if (!r)
|
if (!r)
|
||||||
cpufreq_frequency_table_cpuinfo(policy, freq_table);
|
cpufreq_table_validate_and_show(policy, freq_table);
|
||||||
/* Do other things */
|
/* Do other things */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -231,7 +231,7 @@ if you want to skip one entry in the table, set the frequency to
|
||||||
CPUFREQ_ENTRY_INVALID. The entries don't need to be in ascending
|
CPUFREQ_ENTRY_INVALID. The entries don't need to be in ascending
|
||||||
order.
|
order.
|
||||||
|
|
||||||
By calling cpufreq_frequency_table_cpuinfo(struct cpufreq_policy *policy,
|
By calling cpufreq_table_validate_and_show(struct cpufreq_policy *policy,
|
||||||
struct cpufreq_frequency_table *table);
|
struct cpufreq_frequency_table *table);
|
||||||
the cpuinfo.min_freq and cpuinfo.max_freq values are detected, and
|
the cpuinfo.min_freq and cpuinfo.max_freq values are detected, and
|
||||||
policy->min and policy->max are set to the same values. This is
|
policy->min and policy->max are set to the same values. This is
|
||||||
|
|
|
@ -63,8 +63,6 @@ int cpufreq_frequency_table_cpuinfo(struct cpufreq_policy *policy,
|
||||||
else
|
else
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(cpufreq_frequency_table_cpuinfo);
|
|
||||||
|
|
||||||
|
|
||||||
int cpufreq_frequency_table_verify(struct cpufreq_policy *policy,
|
int cpufreq_frequency_table_verify(struct cpufreq_policy *policy,
|
||||||
struct cpufreq_frequency_table *table)
|
struct cpufreq_frequency_table *table)
|
||||||
|
|
Loading…
Reference in a new issue