Skip to content

Commit efee62c

Browse files
rmurphy-armgregkh
authored andcommitted
perf/arm-ni: Set initial IRQ affinity
commit c872d7c 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]>
1 parent 91b3708 commit efee62c

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)