cpupower: Fix amd cpu (family < 0x17) active state issue
Quoted 9 lines · 徐福海
From: xufuhai<[email protected]>
For the old AMD processor (family <
0x17), cpupower will call theamd_pci_get_num_boost_statesfunction, but for the non-root userpci_read_bytefunction (implementation comes from the psutil library), val will be set to0xff, indicating that there is no read function callback. At this time, the original logic will set the cpupower turbo active state to yes. This is an obvious issue~
Quoted 3 lines
Reproduce procedure:
cpupower frequency-info
Please resend this patch and the following from the same address as the Signed-off-by.
https://patchwork.kernel.org/project/linux-pm/patch/[email protected]/
thanks,
-- Shuah