aboutsummaryrefslogtreecommitdiffstats
path: root/tools/power/cpupower/utils/helpers/helpers.h
diff options
context:
space:
mode:
authorHuang Rui <[email protected]>2022-02-22 15:34:24 +0000
committerShuah Khan <[email protected]>2022-02-23 01:37:07 +0000
commit35fdf42d90d09d2d00ef65999fe338027a6b4d8e (patch)
tree26f6b498c123881d0674f7c52a71008da621c939 /tools/power/cpupower/utils/helpers/helpers.h
parentcpupower: Enable boost state support for AMD P-State module (diff)
downloadkernel-35fdf42d90d09d2d00ef65999fe338027a6b4d8e.tar.gz
kernel-35fdf42d90d09d2d00ef65999fe338027a6b4d8e.zip
cpupower: Move print_speed function into misc helper
The print_speed can be as a common function, and expose it into misc helper header. Then it can be used on other helper files as well. Reviewed-by: Shuah Khan <[email protected]> Signed-off-by: Huang Rui <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'tools/power/cpupower/utils/helpers/helpers.h')
-rw-r--r--tools/power/cpupower/utils/helpers/helpers.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/power/cpupower/utils/helpers/helpers.h b/tools/power/cpupower/utils/helpers/helpers.h
index 326491e11c6e..fa2a8c1b1d26 100644
--- a/tools/power/cpupower/utils/helpers/helpers.h
+++ b/tools/power/cpupower/utils/helpers/helpers.h
@@ -200,5 +200,6 @@ extern struct bitmask *offline_cpus;
void get_cpustate(void);
void print_online_cpus(void);
void print_offline_cpus(void);
+void print_speed(unsigned long speed, int no_rounding);
#endif /* __CPUPOWERUTILS_HELPERS__ */