]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
coresight: trbe: Request specific affinities for per CPU interrupts
authorMarc Zyngier <maz@kernel.org>
Mon, 20 Oct 2025 12:29:37 +0000 (13:29 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 27 Oct 2025 16:16:36 +0000 (17:16 +0100)
Let the TRBE driver request interrupts with an affinity mask matching the
TRBE implementation affinity.

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-21-maz@kernel.org
drivers/hwtracing/coresight/coresight-trbe.c

index 8f17160fec4425711f5e3bdc9227b8a36cfe6fd9..9f64f463339d6e996ae9d20642e2066290402d91 100644 (file)
@@ -1494,7 +1494,8 @@ static int arm_trbe_probe_irq(struct platform_device *pdev,
        if (!drvdata->handle)
                return -ENOMEM;
 
-       ret = request_percpu_irq(drvdata->irq, arm_trbe_irq_handler, DRVNAME, drvdata->handle);
+       ret = request_percpu_irq_affinity(drvdata->irq, arm_trbe_irq_handler, DRVNAME,
+                                         affinity, drvdata->handle);
        if (ret) {
                free_percpu(drvdata->handle);
                return ret;