Commit 15b63887 authored by John Garry's avatar John Garry Committed by Greg Kroah-Hartman
Browse files

genirq/affinity: Add irq_update_affinity_desc()



[ Upstream commit 1d3aec89 ]

Add a function to allow the affinity of an interrupt be switched to
managed, such that interrupts allocated for platform devices may be
managed.

This new interface has certain limitations, and attempts to use it in the
following circumstances will fail:
- For when the kernel is configured for generic IRQ reservation mode (in
  config GENERIC_IRQ_RESERVATION_MODE). The reason being that it could
  conflict with managed vs. non-managed interrupt accounting.
- The interrupt is already started, which should not be the case during
  init
- The interrupt is already configured as managed, which means double init

Suggested-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/1606905417-183214-2-git-send-email-john.garry@huawei.com


Stable-dep-of: 915470e1 ("i40e: fix IRQ freeing in i40e_vsi_request_irq_msix error path")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent a84c8af1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment