aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2013-04-22 19:12:28 -0400
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2013-05-10 09:10:38 -0400
commit7c86617dde0015112de566a4619a9b06871580c1 (patch)
tree4fc7b65f611f5059ab03caf93bc85ff3e3fbc3c8 /arch
parent4be6bfe2af829efa6da91ca33f9f2fcb3e37bc89 (diff)
xen/pci: Used cached MSI-X capability offset
We now cache the MSI-X capability offset in the struct pci_dev, so no need to find the capability again. Acked-by: Jan Beulich <jbeulich@suse.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/pci/xen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c
index 82c62d689da8..48e8461057ba 100644
--- a/arch/x86/pci/xen.c
+++ b/arch/x86/pci/xen.c
@@ -295,8 +295,7 @@ static int xen_initdom_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
295 int pos; 295 int pos;
296 u32 table_offset, bir; 296 u32 table_offset, bir;
297 297
298 pos = pci_find_capability(dev, PCI_CAP_ID_MSIX); 298 pos = dev->msix_cap;
299
300 pci_read_config_dword(dev, pos + PCI_MSIX_TABLE, 299 pci_read_config_dword(dev, pos + PCI_MSIX_TABLE,
301 &table_offset); 300 &table_offset);
302 bir = (u8)(table_offset & PCI_MSIX_TABLE_BIR); 301 bir = (u8)(table_offset & PCI_MSIX_TABLE_BIR);