summaryrefslogtreecommitdiff
path: root/fs/msdos/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorPengjie Zhang <zhangpengjie2@huawei.com>2026-02-13 18:09:35 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-03-05 20:00:19 +0100
commit8505bfb4e4eca28ef1b20d3369435ec2d6a125c6 (patch)
tree097e3d8a89403bf6ff5ef15eaa3366bc39cdb69c /fs/msdos/git@git.tavy.me:linux.git
parent856250ba2e810e772dc95b3234ebf0d6393a51d9 (diff)
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>
Diffstat (limited to 'fs/msdos/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions