cpupower: Add cpuid cap flag for MSR_AMD_HWCR support
authorNathan Fontenot <nathan.fontenot@amd.com>
Mon, 25 Jan 2021 17:36:23 +0000 (11:36 -0600)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 26 Jan 2021 16:40:45 +0000 (09:40 -0700)
commit3a3ecfdb605cc8d98988012a4f88c34b4d220c21
tree68b8c913e8b546b932342d362193ff9b6f2ca032
parentd1abc4e996d7784ce4d56749e4b5ca8ff23b1e0f
cpupower: Add cpuid cap flag for MSR_AMD_HWCR support

Remove the family check for accessing the MSR_AMD_HWCR MSR and replace
it with a cpupower cap flag.

This update also allows for the removal of the local cpupower_cpu_info
variable in cpufreq_has_boost_support() since we no longer need it to
check the family.

Signed-off-by: Nathan Fontenot <nathan.fontenot@amd.com>
Reviewed-by: Robert Richter <rrichter@amd.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/power/cpupower/utils/helpers/cpuid.c
tools/power/cpupower/utils/helpers/helpers.h
tools/power/cpupower/utils/helpers/misc.c