arm: pmu: Move error message and -EOPNOTSUPP to individual PMUs
authorJames Clark <james.clark@arm.com>
Mon, 11 Dec 2023 16:13:21 +0000 (16:13 +0000)
committerWill Deacon <will@kernel.org>
Tue, 12 Dec 2023 09:46:22 +0000 (09:46 +0000)
commit186c91aaf54989a9c74869dcc6ba031313d8e2b8
treef37e4c8e88c0e4dae71050917ffc2bae2948deca
parentc7b98bf0fc79bd2d91f6ef84e07b5f648d43c13e
arm: pmu: Move error message and -EOPNOTSUPP to individual PMUs

-EPERM or -EINVAL always get converted to -EOPNOTSUPP, so replace them.
This will allow __hw_perf_event_init() to return a different code or not
print that particular message for a different error in the next commit.

Signed-off-by: James Clark <james.clark@arm.com>
Link: https://lore.kernel.org/r/20231211161331.1277825-10-james.clark@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm/kernel/perf_event_v7.c
drivers/perf/apple_m1_cpu_pmu.c
drivers/perf/arm_pmu.c
drivers/perf/arm_pmuv3.c