PCI: Cache MSI/MSI-X capability offsets in struct pci_dev
authorGavin Shan <shangw@linux.vnet.ibm.com>
Thu, 4 Apr 2013 16:54:30 +0000 (16:54 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 23 Apr 2013 15:50:30 +0000 (09:50 -0600)
commite375b561817d9ae098cc4296a729fc88924a0159
tree7cd6f54166d29a1b7c612e407d57ce79b1024610
parent703860ed4e36ded696bd44af6107243fdedfb746
PCI: Cache MSI/MSI-X capability offsets in struct pci_dev

The patch caches the MSI and MSI-X capability offset in PCI device
(struct pci_dev) so that we needn't read it from the config space
upon enabling or disabling MSI or MSI-X interrupts.

[bhelgaas: moved pm_cap size change to separate patch]
Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/msi.c
include/linux/pci.h