]> www.infradead.org Git - users/dwmw2/linux.git/commit
perf: arm_pmuv3: Drop unnecessary IS_ENABLED(CONFIG_ARM64) check
authorRob Herring (Arm) <robh@kernel.org>
Wed, 26 Jun 2024 22:32:26 +0000 (16:32 -0600)
committerWill Deacon <will@kernel.org>
Wed, 3 Jul 2024 13:07:14 +0000 (14:07 +0100)
commit598c1a2d9f4ba8a04cf92af8e988052179e31199
tree1585105c9d4fa64876d5eca22ef508e6f9470d01
parent81e15ca3e523a508d62806fe681c1d289361ca16
perf: arm_pmuv3: Drop unnecessary IS_ENABLED(CONFIG_ARM64) check

The IS_ENABLED(CONFIG_ARM64) check for threshold support is unnecessary.
The purpose is to not enable thresholds on arm32, but if threshold is
non-zero, the check against threshold_max() just above here will have
errored out because threshold_max() is always 0 on arm32.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Acked-by: Mark rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20240626-arm-pmu-3-9-icntr-v2-2-c9784b4f4065@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm_pmuv3.c