Commit 225d7570 authored by Ilkka Koskinen's avatar Ilkka Koskinen Committed by Will Deacon
Browse files

perf: arm_cspmu: Set irq affinitiy only if overflow interrupt is used



Don't try to set irq affinity if PMU doesn't have an overflow interrupt.

Fixes: e37dfd65 ("perf: arm_cspmu: Add support for ARM CoreSight PMU driver")
Signed-off-by: default avatarIlkka Koskinen <ilkka@os.amperecomputing.com>
Link: https://lore.kernel.org/r/20230608203742.3503486-1-ilkka@os.amperecomputing.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 7a6a9f1c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1232,6 +1232,7 @@ static struct platform_driver arm_cspmu_driver = {
static void arm_cspmu_set_active_cpu(int cpu, struct arm_cspmu *cspmu)
{
	cpumask_set_cpu(cpu, &cspmu->active_cpu);
	if (cspmu->irq)
		WARN_ON(irq_set_affinity(cspmu->irq, &cspmu->active_cpu));
}