diff options
author | Abhishek Goel <huntbag@linux.vnet.ibm.com> | 2019-02-05 11:51:28 +0100 |
---|---|---|
committer | Shuah Khan <shuah@kernel.org> | 2019-02-13 17:26:17 +0100 |
commit | ae2917093fb60bdc1ed3e5757b74801420569a9a (patch) | |
tree | 8decacdc1b7136899e6e55e4146b706695d9bbd5 /tools/power/cpupower/lib/cpufreq.h | |
parent | Linux 5.0-rc6 (diff) | |
download | linux-ae2917093fb60bdc1ed3e5757b74801420569a9a.tar.xz linux-ae2917093fb60bdc1ed3e5757b74801420569a9a.zip |
tools/power/cpupower: Display boost frequency separately
cpufreq driver creates sysfs file "scaling_boost_frequency" for platforms
which support boost frequency. Cpupower now prints boost frequencies
separately. For few x86 vendors who already have different way to get boost
frequency, will continue to use the existing logic. Rest of the platforms
will rely on "scaling_boost_frequency" file to display boost frequency.
Signed-off-by: Abhishek Goel <huntbag@linux.vnet.ibm.com>
Signed-off-by: Shuah Khan <shuah@kernel.org>
Diffstat (limited to 'tools/power/cpupower/lib/cpufreq.h')
-rw-r--r-- | tools/power/cpupower/lib/cpufreq.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/power/cpupower/lib/cpufreq.h b/tools/power/cpupower/lib/cpufreq.h index 60beaf5ed2ea..775738269cbf 100644 --- a/tools/power/cpupower/lib/cpufreq.h +++ b/tools/power/cpupower/lib/cpufreq.h @@ -28,10 +28,10 @@ struct cpufreq_available_governors { struct cpufreq_available_governors *first; }; -struct cpufreq_available_frequencies { +struct cpufreq_frequencies { unsigned long frequency; - struct cpufreq_available_frequencies *next; - struct cpufreq_available_frequencies *first; + struct cpufreq_frequencies *next; + struct cpufreq_frequencies *first; }; @@ -129,14 +129,14 @@ void cpufreq_put_available_governors( * * Only present on _some_ ->target() cpufreq drivers. For information purposes * only. Please free allocated memory by calling - * cpufreq_put_available_frequencies after use. + * cpufreq_put_frequencies after use. */ -struct cpufreq_available_frequencies -*cpufreq_get_available_frequencies(unsigned int cpu); +struct cpufreq_frequencies +*cpufreq_get_frequencies(const char *type, unsigned int cpu); -void cpufreq_put_available_frequencies( - struct cpufreq_available_frequencies *first); +void cpufreq_put_frequencies( + struct cpufreq_frequencies *first); /* determine affected CPUs |