]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
tools/power turbostat: Fix caller parameter of get_tdp_amd()
authorPu Wen <puwen@hygon.cn>
Sat, 31 Aug 2019 02:19:58 +0000 (10:19 +0800)
committerLen Brown <len.brown@intel.com>
Sat, 31 Aug 2019 18:48:39 +0000 (14:48 -0400)
commit9cfa8e042f7cbb1994cc5923e46c78b36f6054f4
tree66ad0ca2cc17e50a16eef549587099fd6830c3f0
parent1e9042b9c8d46ada9ee7b3339a31f50d12e5d291
tools/power turbostat: Fix caller parameter of get_tdp_amd()

Commit 9392bd98bba760be96ee ("tools/power turbostat: Add support for AMD
Fam 17h (Zen) RAPL") add a function get_tdp_amd(), the parameter is CPU
family. But the rapl_probe_amd() function use wrong model parameter.
Fix the wrong caller parameter of get_tdp_amd() to use family.

Cc: <stable@vger.kernel.org> # v5.1+
Signed-off-by: Pu Wen <puwen@hygon.cn>
Reviewed-by: Calvin Walton <calvin.walton@kepstin.ca>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c