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.

coresight: trbe: Convert to the 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 TRBE 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>
Acked-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://patch.msgid.link/20251020122944.3074811-8-maz@kernel.org

authored by

Marc Zyngier and committed by
Thomas Gleixner
541454dd de575de8

+3 -3
+3 -3
drivers/hwtracing/coresight/coresight-trbe.c
··· 1474 1474 static int arm_trbe_probe_irq(struct platform_device *pdev, 1475 1475 struct trbe_drvdata *drvdata) 1476 1476 { 1477 + const struct cpumask *affinity; 1477 1478 int ret; 1478 1479 1479 - drvdata->irq = platform_get_irq(pdev, 0); 1480 + drvdata->irq = platform_get_irq_affinity(pdev, 0, &affinity); 1480 1481 if (drvdata->irq < 0) { 1481 1482 pr_err("IRQ not found for the platform device\n"); 1482 1483 return drvdata->irq; ··· 1488 1487 return -EINVAL; 1489 1488 } 1490 1489 1491 - if (irq_get_percpu_devid_partition(drvdata->irq, &drvdata->supported_cpus)) 1492 - return -EINVAL; 1490 + cpumask_copy(&drvdata->supported_cpus, affinity); 1493 1491 1494 1492 drvdata->handle = alloc_percpu(struct perf_output_handle *); 1495 1493 if (!drvdata->handle)