diff options
author | Ilkka Koskinen <ilkka@os.amperecomputing.com> | 2023-06-08 13:37:42 -0700 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2023-06-09 11:25:56 +0100 |
commit | 225d757012e0afa673d8c862e6fb39ed2f429b4d (patch) | |
tree | 49453f6cf782f6875bd5b476a30daf2edaab1370 /drivers | |
parent | 7a6a9f1c5a0a875a421db798d4b2ee022dc1ee1a (diff) | |
download | linux-stable-225d757012e0afa673d8c862e6fb39ed2f429b4d.tar.gz linux-stable-225d757012e0afa673d8c862e6fb39ed2f429b4d.tar.bz2 linux-stable-225d757012e0afa673d8c862e6fb39ed2f429b4d.zip |
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: e37dfd65731d ("perf: arm_cspmu: Add support for ARM CoreSight PMU driver")
Signed-off-by: Ilkka Koskinen <ilkka@os.amperecomputing.com>
Link: https://lore.kernel.org/r/20230608203742.3503486-1-ilkka@os.amperecomputing.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/perf/arm_cspmu/arm_cspmu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/perf/arm_cspmu/arm_cspmu.c b/drivers/perf/arm_cspmu/arm_cspmu.c index a3f1c410b417..d0572162f063 100644 --- a/drivers/perf/arm_cspmu/arm_cspmu.c +++ b/drivers/perf/arm_cspmu/arm_cspmu.c @@ -1232,7 +1232,8 @@ 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); - WARN_ON(irq_set_affinity(cspmu->irq, &cspmu->active_cpu)); + if (cspmu->irq) + WARN_ON(irq_set_affinity(cspmu->irq, &cspmu->active_cpu)); } static int arm_cspmu_cpu_online(unsigned int cpu, struct hlist_node *node) |