Skip to content

Commit 225d757

Browse files
ilkka-koskinenwilldeacon
authored andcommitted
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: e37dfd6 ("perf: arm_cspmu: Add support for ARM CoreSight PMU driver") Signed-off-by: Ilkka Koskinen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 7a6a9f1 commit 225d757

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/perf/arm_cspmu/arm_cspmu.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,8 @@ static struct platform_driver arm_cspmu_driver = {
12321232
static void arm_cspmu_set_active_cpu(int cpu, struct arm_cspmu *cspmu)
12331233
{
12341234
cpumask_set_cpu(cpu, &cspmu->active_cpu);
1235-
WARN_ON(irq_set_affinity(cspmu->irq, &cspmu->active_cpu));
1235+
if (cspmu->irq)
1236+
WARN_ON(irq_set_affinity(cspmu->irq, &cspmu->active_cpu));
12361237
}
12371238

12381239
static int arm_cspmu_cpu_online(unsigned int cpu, struct hlist_node *node)

0 commit comments

Comments
 (0)