Commit a38039dc authored by Nathan Fontenot's avatar Nathan Fontenot Committed by Zheng Zengkai
Browse files

cpupower: Update family checks when decoding HW pstates

mainline inclusion
from mainline-5.12-rc1-dontuse
commit 23765b82
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4QQWF



--------------------------------

The family checks in get_cof() and get_did() need to use the
correct MSR format depending on the family. Add a cpupower
capability for using the pstatedef (family 17h and newer) to
control this instead of direct family checks.

Signed-off-by: default avatarNathan Fontenot <nathan.fontenot@amd.com>
Reviewed-by: default avatarRobert Richter <rrichter@amd.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
Signed-off-by: default avatarqinyu <qinyu16@huawei.com>
Reviewed-by: default avatarChao Liu <liuchao173@huawei.com>
Reviewed-by: default avatarXiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 3f1524f9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment