]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0831d0b1d1b3c3ce8145a0d6d5cf8d2927f5286d
tree7cd6f54166d29a1b7c612e407d57ce79b1024610
parentc3080e24e4a44041986c85feb576492b61df0353
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