Skip to content

Commit 24cbf27

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 7f8576f commit 24cbf27

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/perf/arm-ni.c

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

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

0 commit comments

Comments
 (0)