summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorChristian Loehle <christian.loehle@arm.com>2026-08-03 22:05:25 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-08-05 15:09:24 +0200
commit9d9157ee90e3eed393e92b4032b83ddb8691de64 (patch)
treefd6f3f6f37966f4932b27da56468a6a1ebec1668 /tools/perf/scripts/python/bin
parent334dd0ed87e4f7b8e7753a8d6083c150f9520329 (diff)
ACPI: CPPC: Avoid unnecessary reads for full-width writes
SystemMemory GAS entries may describe a field within a wider access unit, so cpc_write() reads the access unit before updating the field to preserve the surrounding bits. It also does this when the field covers the complete access unit. When the bit offset is zero and the register bit width equals the resolved access width, the previous value cannot affect the result. Skip the MMIO read and mask operation in that case. Retain rmw_lock because another entry in the same _CPC package may share the access unit. Signed-off-by: Christian Loehle <christian.loehle@arm.com> Reviewed-by: Zhongqiu Han <zhongqiu.han@oss.qualcomm.com> Link: https://patch.msgid.link/20260803210527.1285229-2-christian.loehle@arm.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions