mirror-linux/tools/power/cpupower/utils
Roman Storozhenko 3e1f12c266 cpupower: Change the var type of the 'monitor' subcommand display mode
There is a type 'enum operation_mode_e' contains the display modes of
the 'monitor' subcommand. This type isn't used though, instead the
variable 'mode' is of a simple 'int' type.
Change 'mode' variable type from 'int' to 'enum operation_mode_e' in
order to improve compiler type checking.
Built and tested this with different monitor cmdline params. Everything
works as expected, that is nothing changed and no regressions encountered.

Signed-off-by: Roman Storozhenko <romeusmeister@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2024-06-20 10:08:08 -06:00
..
helpers tools/power/cpupower: Fix Pstate frequency reporting on AMD Family 1Ah CPUs 2024-05-28 09:22:57 -06:00
idle_monitor cpupower: Change the var type of the 'monitor' subcommand display mode 2024-06-20 10:08:08 -06:00
builtin.h cpupower: Introduce powercap intel-rapl library and powercap-info command 2022-11-30 16:48:28 -07:00
cpufreq-info.c tools/cpupower: Choose base_cpu to display default cpupower details 2022-11-25 10:50:04 -07:00
cpufreq-set.c cpupower: Provide online and offline CPU information 2020-10-26 13:36:24 -06:00
cpuidle-info.c tools/cpupower: Choose base_cpu to display default cpupower details 2022-11-25 10:50:04 -07:00
cpuidle-set.c cpupower: Fix cpuidle_set to accept only numeric values for idle-set operation. 2023-07-18 16:07:08 -06:00
cpupower-info.c tools/cpupower: Choose base_cpu to display default cpupower details 2022-11-25 10:50:04 -07:00
cpupower-set.c cpupower: Add turbo-boost support in cpupower 2023-07-18 16:07:01 -06:00
cpupower.c cpupower: Introduce powercap intel-rapl library and powercap-info command 2022-11-30 16:48:28 -07:00
powercap-info.c cpupower: Introduce powercap intel-rapl library and powercap-info command 2022-11-30 16:48:28 -07:00
version-gen.sh License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00