pci/msi: Retrieve affinity for a vector
authorThomas Gleixner <tglx@linutronix.de>
Wed, 14 Sep 2016 14:18:51 +0000 (16:18 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 14 Sep 2016 20:11:10 +0000 (22:11 +0200)
commitee8d41e53efe14bfc5ea5866e1178b06d78a7c95
tree49bd07263483c2d6c43febb7f0668d53110d3b8e
parent44082fd6702fb12020967fd375f8bf6dd7c111bf
pci/msi: Retrieve affinity for a vector

Add a helper to get the affinity mask for a given PCI irq vector.  For MSI or
MSI-X vectors these are stored by the IRQ core, while for legacy interrupts
we will always return cpu_possible_map.

[hch: updated to follow the style of pci_irq_vector()]

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: axboe@fb.com
Cc: keith.busch@intel.com
Cc: agordeev@redhat.com
Cc: linux-block@vger.kernel.org
Link: http://lkml.kernel.org/r/1473862739-15032-6-git-send-email-hch@lst.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/pci/msi.c
include/linux/pci.h