genirq: Make irq_destroy_ipi take a cpumask of IPIs to destroy
authorMatt Redfearn <matt.redfearn@imgtec.com>
Mon, 25 Apr 2016 07:14:23 +0000 (08:14 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 2 May 2016 11:42:50 +0000 (13:42 +0200)
commit01292cea0df86ed4a1eb6450d6eda375ef925716
treefc5b2e42c595619148acc40f59a5937ade2450d2
parentb75a2bf899b668b1d52de8846aafdbcf81349c73
genirq: Make irq_destroy_ipi take a cpumask of IPIs to destroy

Previously irq_destroy_ipi() would destroy IPIs to all CPUs that were
configured by irq_reserve_ipi(). This change makes it possible to
destroy just a subset of the IPIs. This may be useful to remove IPIs to
CPUs that have been hot removed so that the IRQ numbers allocated within
the IPI domain can be re-used.

The original behaviour is restored by passing the complete mask that the
IPI was created with.

There are currently no users of this function that would break from the
API change.

Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: jason@lakedaemon.net
Cc: marc.zyngier@arm.com
Cc: ralf@linux-mips.org
Cc: Qais Yousef <qsyousef@gmail.com>
Cc: lisa.parratt@imgtec.com
Cc: jiang.liu@linux.intel.com
Link: http://lkml.kernel.org/r/1461568464-31701-1-git-send-email-matt.redfearn@imgtec.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/irqdomain.h
kernel/irq/ipi.c