Skip to content

Commit 175f0a3

Browse files
rmurphy-armopsiff
authored andcommitted
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: [email protected] Fixes: 4d5a768 ("perf: Add driver for Arm NI-700 interconnect PMU") Signed-off-by: Robin Murphy <[email protected]> Tested-by: Shouping Wang <[email protected]> Link: https://lore.kernel.org/r/614ced9149ee8324e58930862bd82cbf46228d27.1747149165.git.robin.murphy@arm.com Signed-off-by: Will Deacon <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> (cherry picked from commit efee62c5fc8c27d15c659c507db111d1eb1164e4)
1 parent be658b7 commit 175f0a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/perf/arm-ni.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,8 @@ static int arm_ni_init_cd(struct arm_ni *ni, struct arm_ni_node *node, u64 res_s
545545
return err;
546546

547547
cd->cpu = cpumask_local_spread(0, dev_to_node(ni->dev));
548+
irq_set_affinity(cd->irq, cpumask_of(cd->cpu));
549+
548550
cd->pmu = (struct pmu) {
549551
.module = THIS_MODULE,
550552
.parent = ni->dev,

0 commit comments

Comments
 (0)