]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf/arm-ni: Support sharing IRQs within an NI instance
authorShouping Wang <allen.wang@hj-micro.com>
Fri, 11 Jul 2025 18:15:17 +0000 (19:15 +0100)
committerWill Deacon <will@kernel.org>
Mon, 14 Jul 2025 14:07:51 +0000 (15:07 +0100)
commit89f0b9ccd31479db17dcc59db29a6fcdb677746c
treef56a5d955b172b576cff541f60a3e8d495af4254
parent6a5dc6c7534eaafa362fa82f8ff060567b0577f1
perf/arm-ni: Support sharing IRQs within an NI instance

NI-700 has a distinct PMU interrupt output for each Clock Domain,
however some integrations may still combine these together externally.
The initial driver didn't attempt to support this, in anticipation of a
more general solution for IRQ sharing between system PMU instances, but
that's still a way off, so let's make this intermediate step for now to
at least allow sharing IRQs within an individual NI instance.

Now that CPU affinity and migration are cleaned up, it's fairly
straightforward to adopt similar logic to arm-cmn, to identify CDs with
a common interrupt and loop over them directly in the handler.

Signed-off-by: Shouping Wang <allen.wang@hj-micro.com>
[ rm: Rework for affinity handling, cosmetics, new commit message ]
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/f62db639d3b54c959ec477db7b8ccecbef1ca310.1752256072.git.robin.murphy@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm-ni.c