Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf: arm_spe_pmu: Convert to new interrupt affinity retrieval API

Now that the relevant interrupt controllers are equipped with a callback
returning the affinity of per-CPU interrupts, switch the ARM SPE driver
over to this new method.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Will Deacon <will@kernel.org>
Reviewed-by: Jinjie Ruan <ruanjinjie@huawei.com>
Link: https://patch.msgid.link/20251020122944.3074811-10-maz@kernel.org

authored by

Marc Zyngier and committed by
Thomas Gleixner
f6c8aced 663783e0

+4 -5
+4 -5
drivers/perf/arm_spe_pmu.c
··· 1287 1287 static int arm_spe_pmu_irq_probe(struct arm_spe_pmu *spe_pmu) 1288 1288 { 1289 1289 struct platform_device *pdev = spe_pmu->pdev; 1290 - int irq = platform_get_irq(pdev, 0); 1290 + const struct cpumask *affinity; 1291 + int irq; 1291 1292 1293 + irq = platform_get_irq_affinity(pdev, 0, &affinity); 1292 1294 if (irq < 0) 1293 1295 return -ENXIO; 1294 1296 ··· 1299 1297 return -EINVAL; 1300 1298 } 1301 1299 1302 - if (irq_get_percpu_devid_partition(irq, &spe_pmu->supported_cpus)) { 1303 - dev_err(&pdev->dev, "failed to get PPI partition (%d)\n", irq); 1304 - return -EINVAL; 1305 - } 1300 + cpumask_copy(&spe_pmu->supported_cpus, affinity); 1306 1301 1307 1302 spe_pmu->irq = irq; 1308 1303 return 0;