perf: pmuv3: Abstract PMU version checks
authorZaid Al-Bassam <zalbassam@google.com>
Fri, 17 Mar 2023 19:50:22 +0000 (15:50 -0400)
committerWill Deacon <will@kernel.org>
Mon, 27 Mar 2023 13:01:18 +0000 (14:01 +0100)
commit711432770f78e5a9ae235a1a55decfb71993c958
tree9bf498bedab09e21f74cf6680e231e7a1a980b7b
parentdf29ddf4f04b00cf60669686dc7f534c3ed7c433
perf: pmuv3: Abstract PMU version checks

The current PMU version definitions are available for arm64 only,
As we want to add PMUv3 support to arm (32-bit), abstracts
these definitions by using arch-specific helpers.

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-4-zalbassam@google.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/arm_pmuv3.h
drivers/perf/arm_pmuv3.c