]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf/events: Replace READ_ONCE() with standard pgtable accessors
authorAnshuman Khandual <anshuman.khandual@arm.com>
Fri, 27 Feb 2026 06:27:44 +0000 (06:27 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 8 Apr 2026 11:11:46 +0000 (13:11 +0200)
commit5a84b600050c5f16b8bba25dd0e7aea845880407
tree065646eb67dae903f5490192d35b4e4e11ee41a8
parent9805ed3c91478b08a586861b874bd8b6a2fed648
perf/events: Replace READ_ONCE() with standard pgtable accessors

Replace raw READ_ONCE() dereferences of pgtable entries with corresponding
standard page table accessors pxdp_get() in perf_get_pgtable_size(). These
accessors default to READ_ONCE() on platforms that don't override them. So
there is no functional change on such platforms.

However arm64 platform is being extended to support 128 bit page tables via
a new architecture feature i.e FEAT_D128 in which case READ_ONCE() will not
provide required single copy atomic access for 128 bit page table entries.
Although pxdp_get() accessors can later be overridden on arm64 platform to
extend required single copy atomicity support on 128 bit entries.

Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260227062744.2215491-1-anshuman.khandual@arm.com
kernel/events/core.c