summaryrefslogtreecommitdiff
path: root/tools/power/cpupower/utils/cpufreq-info.c
diff options
context:
space:
mode:
authorNathan Fontenot <nathan.fontenot@amd.com>2021-01-25 20:36:01 +0300
committerShuah Khan <skhan@linuxfoundation.org>2021-01-26 19:40:39 +0300
commitd1abc4e996d7784ce4d56749e4b5ca8ff23b1e0f (patch)
tree3ab09f2534c66bbecbc9bee04ed3914b27200d90 /tools/power/cpupower/utils/cpufreq-info.c
parent56a85eebebdba62ebf6c46bd957949cc6e926aa0 (diff)
downloadlinux-d1abc4e996d7784ce4d56749e4b5ca8ff23b1e0f.tar.xz
cpupower: Remove family arg to decode_pstates()
The decode_pstates() routine no longer uses the CPU family and the caleed routines (get_cof() and get_did()) can grab the family from the global cpupower_cpu_info struct. These update removes passing the family arg to all these routines. Signed-off-by: Nathan Fontenot <nathan.fontenot@amd.com> Reviewed-by: Robert Richter <rrichter@amd.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/power/cpupower/utils/cpufreq-info.c')
-rw-r--r--tools/power/cpupower/utils/cpufreq-info.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/power/cpupower/utils/cpufreq-info.c b/tools/power/cpupower/utils/cpufreq-info.c
index 6efc0f6b1b11..f9895e31ff5a 100644
--- a/tools/power/cpupower/utils/cpufreq-info.c
+++ b/tools/power/cpupower/utils/cpufreq-info.c
@@ -186,8 +186,7 @@ static int get_boost_mode_x86(unsigned int cpu)
if ((cpupower_cpu_info.vendor == X86_VENDOR_AMD &&
cpupower_cpu_info.family >= 0x10) ||
cpupower_cpu_info.vendor == X86_VENDOR_HYGON) {
- ret = decode_pstates(cpu, cpupower_cpu_info.family, b_states,
- pstates, &pstate_no);
+ ret = decode_pstates(cpu, b_states, pstates, &pstate_no);
if (ret)
return ret;