ARM: perf: Allow the use of the PMUv3 driver on 32bit ARM
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 17 Mar 2023 19:50:26 +0000 (15:50 -0400)
committerWill Deacon <will@kernel.org>
Mon, 27 Mar 2023 13:01:18 +0000 (14:01 +0100)
commit009d6dc87a568db62290b8dc0a517b612217b6da
tree54700b4d444371659a00aa42fefc206bb1e4e684
parent252309adc81f529d42c8c90a4965866ec82cb6ad
ARM: perf: Allow the use of the PMUv3 driver on 32bit ARM

The only thing stopping the PMUv3 driver from compiling on 32bit
is the lack of defined system registers names and the handful of
required helpers.

This is easily solved by providing the sysreg accessors and updating
the Kconfig entry.

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-8-zalbassam@google.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm/include/asm/arm_pmuv3.h [new file with mode: 0644]
drivers/perf/Kconfig
drivers/perf/arm_pmuv3.c