]> git.ipfire.org Git - thirdparty/linux.git/commit
ACPI: CPPC: Move reference performance to capabilities
authorPengjie Zhang <zhangpengjie2@huawei.com>
Fri, 13 Feb 2026 10:09:35 +0000 (18:09 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 5 Mar 2026 19:00:19 +0000 (20:00 +0100)
commit8505bfb4e4eca28ef1b20d3369435ec2d6a125c6
tree097e3d8a89403bf6ff5ef15eaa3366bc39cdb69c
parent856250ba2e810e772dc95b3234ebf0d6393a51d9
ACPI: CPPC: Move reference performance to capabilities

Currently, the `Reference Performance` register is read every time
the CPU frequency is sampled in `cppc_get_perf_ctrs()`. This function
is on the hot path of the cppc_cpufreq driver.

Reference Performance indicates the performance level that corresponds
to the Reference Counter incrementing and is not expected to change
dynamically during runtime (unlike the Delivered and Reference counters).

Reading this register in the hot path incurs unnecessary overhead,
particularly on platforms where CPC registers are located in the PCC
(Platform Communication Channel) subspace. This patch moves
`reference_perf` from the dynamic feedback counters structure
(`cppc_perf_fb_ctrs`) to the static capabilities structure
(`cppc_perf_caps`).

Signed-off-by: Pengjie Zhang <zhangpengjie2@huawei.com>
[ rjw: Changelog adjustment ]
Link: https://patch.msgid.link/20260213100935.19111-1-zhangpengjie2@huawei.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/cppc_acpi.c
drivers/cpufreq/cppc_cpufreq.c
include/acpi/cppc_acpi.h