linux/tools/power/cpupower/utils
Nathan Fontenot a0255a76bf cpupower: Add CPUPOWER_CAP_AMD_HW_PSTATE cpuid caps flag
Add a check in get_cpu_info() for the ability to read frequencies
from hardware and set the CPUPOWER_CAP_AMD_HW_PSTATE cpuid flag.
The cpuid flag is set when CPUID_80000007_EDX[7] is set,
which is all families >= 10h. The check excludes family 14h
because HW pstate reporting was not implemented on family 14h.

This is intended to reduce family checks in the main code paths.

Signed-off-by: Nathan Fontenot <nathan.fontenot@amd.com>
Reviewed-by: Robert Richter <rrichter@amd.com>
Reviewed-by: skhan@linuxfoundation.org
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2021-01-26 09:40:15 -07:00
..
helpers cpupower: Add CPUPOWER_CAP_AMD_HW_PSTATE cpuid caps flag 2021-01-26 09:40:15 -07:00
idle_monitor cpupower: Remove unneeded semicolon 2020-05-08 10:13:26 -06:00
builtin.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cpufreq-info.c cpupower: Revert library ABI changes from commit ae2917093f 2020-01-17 15:21:42 -07:00
cpufreq-set.c cpupower: Provide online and offline CPU information 2020-10-26 13:36:24 -06:00
cpuidle-info.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 166 2019-05-30 11:26:39 -07:00
cpuidle-set.c cpupower: Provide online and offline CPU information 2020-10-26 13:36:24 -06:00
cpupower-info.c tools/power/cpupower: Read energy_perf_bias from sysfs 2020-11-16 17:42:12 +01:00
cpupower-set.c tools/power/cpupower: Read energy_perf_bias from sysfs 2020-11-16 17:42:12 +01:00
cpupower.c cpupower: Provide online and offline CPU information 2020-10-26 13:36:24 -06: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