cpupower: Condense pstate enabled bit checks in decode_pstates()
mainline inclusion from mainline-5.12-rc1-dontuse commit 56a85eeb category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I4QQWF -------------------------------- 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: NNathan Fontenot <nathan.fontenot@amd.com> Reviewed-by: NRobert Richter <rrichter@amd.com> Signed-off-by: NShuah Khan <skhan@linuxfoundation.org> Signed-off-by: Nqinyu <qinyu16@huawei.com> Reviewed-by: NChao Liu <liuchao173@huawei.com> Reviewed-by: NXiongfeng Wang <wangxiongfeng2@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录