aboutsummaryrefslogtreecommitdiffstats
path: root/tools/power/cpupower/utils/helpers/helpers.h
diff options
context:
space:
mode:
authorHuang Rui <ray.huang@amd.com>2022-02-22 23:34:25 +0800
committerShuah Khan <skhan@linuxfoundation.org>2022-02-22 18:37:12 -0700
commitd8363e29178249bb505ae388ce1658484396fcde (patch)
treed3d99102548486f6f52b8e70952f1efa927ac088 /tools/power/cpupower/utils/helpers/helpers.h
parentcpupower: Move print_speed function into misc helper (diff)
downloadlinux-dev-d8363e29178249bb505ae388ce1658484396fcde.tar.xz
linux-dev-d8363e29178249bb505ae388ce1658484396fcde.zip
cpupower: Add function to print AMD P-State performance capabilities
AMD P-State kernel module is using the fine grain frequency instead of acpi hardware pstate. So add a function to print performance and frequency values. Reviewed-by: Shuah Khan <skhan@linuxfoundation.org> Signed-off-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to '')
-rw-r--r--tools/power/cpupower/utils/helpers/helpers.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/power/cpupower/utils/helpers/helpers.h b/tools/power/cpupower/utils/helpers/helpers.h
index fa2a8c1b1d26..96e4bede078b 100644
--- a/tools/power/cpupower/utils/helpers/helpers.h
+++ b/tools/power/cpupower/utils/helpers/helpers.h
@@ -142,6 +142,8 @@ extern int cpufreq_has_boost_support(unsigned int cpu, int *support,
bool cpupower_amd_pstate_enabled(void);
void amd_pstate_boost_init(unsigned int cpu,
int *support, int *active);
+void amd_pstate_show_perf_and_freq(unsigned int cpu,
+ int no_rounding);
/* AMD P-State stuff **************************/
@@ -182,6 +184,9 @@ static inline bool cpupower_amd_pstate_enabled(void)
static inline void amd_pstate_boost_init(unsigned int cpu, int *support,
int *active)
{}
+static inline void amd_pstate_show_perf_and_freq(unsigned int cpu,
+ int no_rounding)
+{}
/* cpuid and cpuinfo helpers **************************/