]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
cpupower: Condense pstate enabled bit checks in decode_pstates()
authorNathan Fontenot <nathan.fontenot@amd.com>
Mon, 25 Jan 2021 17:35:23 +0000 (11:35 -0600)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 26 Jan 2021 16:40:32 +0000 (09:40 -0700)
commit56a85eebebdba62ebf6c46bd957949cc6e926aa0
tree7105b31a86f4fbfad93c41007b4f915e8225ba02
parent23765b82a808da416b70b41d711468e723531e6a
cpupower: Condense pstate enabled bit checks in decode_pstates()

The enabled bit (bit 63) is common for all families so we can remove
the multiple enabled checks based on family and have a common check
for HW pstate enabled.

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/amd.c