summaryrefslogtreecommitdiff
path: root/drivers/perf/arm-ni.c
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2025-05-13 16:38:58 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-08-15 12:14:14 +0200
commitefee62c5fc8c27d15c659c507db111d1eb1164e4 (patch)
tree934d28bceb8436549cea47648a03fe9c4e71c51a /drivers/perf/arm-ni.c
parent91b370800b3f2b3dda244c0ab06719c4971190a5 (diff)
perf/arm-ni: Set initial IRQ affinity
commit c872d7c837382517c51a76dfdcf550332cfab231 upstream. While we do request our IRQs with the right flags to stop their affinity changing unexpectedly, we forgot to actually set it to start with. Oops. Cc: stable@vger.kernel.org Fixes: 4d5a7680f2b4 ("perf: Add driver for Arm NI-700 interconnect PMU") Signed-off-by: Robin Murphy <robin.murphy@arm.com> Tested-by: Shouping Wang <allen.wang@hj-micro.com> Link: https://lore.kernel.org/r/614ced9149ee8324e58930862bd82cbf46228d27.1747149165.git.robin.murphy@arm.com Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/perf/arm-ni.c')
-rw-r--r--drivers/perf/arm-ni.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/perf/arm-ni.c b/drivers/perf/arm-ni.c
index b87d3a9ba7d5..4b9d53dae897 100644
--- a/drivers/perf/arm-ni.c
+++ b/drivers/perf/arm-ni.c
@@ -545,6 +545,8 @@ static int arm_ni_init_cd(struct arm_ni *ni, struct arm_ni_node *node, u64 res_s
return err;
cd->cpu = cpumask_local_spread(0, dev_to_node(ni->dev));
+ irq_set_affinity(cd->irq, cpumask_of(cd->cpu));
+
cd->pmu = (struct pmu) {
.module = THIS_MODULE,
.parent = ni->dev,