]> git.ipfire.org Git - thirdparty/linux.git/commit
perf: arm_pmu: Kill last use of per-CPU cpu_armpmu pointer
authorMarc Zyngier <maz@kernel.org>
Mon, 20 Oct 2025 12:29:43 +0000 (13:29 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 27 Oct 2025 16:16:37 +0000 (17:16 +0100)
commitfa9d2777387346645a40ab37cfb0c37b3ef40cc9
treef322ea0226a2593b264fca37fd2f7960d9f4100c
parentebac4649fcadc6047030810326875c6e612c7b2f
perf: arm_pmu: Kill last use of per-CPU cpu_armpmu pointer

Having removed the use of the cpu_armpmu per-CPU variable from the
interrupt handling, the only user left is the BRBE scheduler hook.

It is easy to drop the use of this variable by following the pointer to the
generic PMU structure, and get the arm_pmu structure from there.

Perform the conversion and kill cpu_armpmu altogether.

Suggested-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Will Deacon <will@kernel.org>
Link: https://patch.msgid.link/20251020122944.3074811-27-maz@kernel.org
drivers/perf/arm_pmu.c
drivers/perf/arm_pmuv3.c
include/linux/perf/arm_pmu.h