diff options
author | Thomas Gleixner <[email protected]> | 2021-05-18 11:17:33 +0200 |
---|---|---|
committer | Will Deacon <[email protected]> | 2021-05-24 11:02:00 +0100 |
commit | 77b06ddc04354293f746d0434f00700110d3392d (patch) | |
tree | 291a5827eed567c9bebcb9e8308a6c32c4303f27 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | ba4489fb949cbd9c9b877dceae361129ed6280f1 (diff) |
perf/hisi: Use irq_set_affinity()
These drivers use 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 <[email protected]>
Cc: Shaokun Zhang <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: [email protected]
Acked-by: Mark Rutland <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions