arm64: perf: Abstract system register accesses away
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 17 Mar 2023 19:50:21 +0000 (15:50 -0400)
committerWill Deacon <will@kernel.org>
Mon, 27 Mar 2023 13:01:18 +0000 (14:01 +0100)
commitdf29ddf4f04b00cf60669686dc7f534c3ed7c433
treece097f499cefb922b04ab3c115894b81b8b9916b
parent7755cec63adeecea3cbbf4032047812c37cf7cc3
arm64: perf: Abstract system register accesses away

As we want to enable 32bit support, we need to distanciate the
PMUv3 driver from the AArch64 system register names.

This patch moves all system register accesses to an architecture
specific include file, allowing the 32bit counterpart to be
slotted in at a later time.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Co-developed-by: Zaid Al-Bassam <zalbassam@google.com>
Signed-off-by: Zaid Al-Bassam <zalbassam@google.com>
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20230317195027.3746949-3-zalbassam@google.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/arm_pmuv3.h [new file with mode: 0644]
drivers/perf/arm_pmuv3.c
include/linux/perf/arm_pmuv3.h