]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpupower: Don't try to read frequency from hardware when kernel uses aperfmperf
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 18 Dec 2024 19:09:53 +0000 (13:09 -0600)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 20 Dec 2024 16:12:07 +0000 (09:12 -0700)
commit26e16174f54d40a3774614c4d43966572ed79dc1
tree56b3396bfd1c0363069a46eb955e16404062e9ed
parent6d4a2987f96b9f281b07286eeb1d4022054e1ecd
cpupower: Don't try to read frequency from hardware when kernel uses aperfmperf

When the amd-pstate is in use frequency is set by the hardware and
measured by the kernel through using the aperf and mperf registers.

There is no direct call to the hardware to indicate current frequency.

Detect that this feature is in use and skip the check.

Link: https://lore.kernel.org/r/20241218191144.3440854-5-superm1@kernel.org
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/power/cpupower/utils/cpufreq-info.c