diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2021-05-18 12:17:27 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-05-24 13:01:59 +0300 |
commit | 84fca8ba620581067c16f2b578f277b1c72fb74b (patch) | |
tree | cf5dfb293e64bd0fee252672b74056aa13416ddc /usr/default_cpio_list | |
parent | da3862e7277bdb0d2cb4fd9511a186b0462448bf (diff) | |
download | linux-84fca8ba620581067c16f2b578f277b1c72fb74b.tar.xz |
perf/arm-ccn: Use irq_set_affinity()
The driver uses irq_set_affinity_hint() to set the affinity for the PMU
interrupts, which relies on the undocumented side effect that this function
actually sets the affinity under the hood.
Setting an hint is clearly not a guarantee and for these PMU interrupts an
affinity hint, which is supposed to guide userspace for setting affinity,
is beyond pointless, because the affinity of these interrupts cannot be
modified from user space.
Aside of that the error checks are bogus because the only error which is
returned from irq_set_affinity_hint() is when there is no irq descriptor
for the interrupt number, but not when the affinity set fails. That's on
purpose because the hint can point to an offline CPU.
Replace the mindless abuse with irq_set_affinity().
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20210518093118.128250213@linutronix.de
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'usr/default_cpio_list')
0 files changed, 0 insertions, 0 deletions