Skip to content

Commit

Permalink
xen/pci: Used cached MSI-X capability offset
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bjorn Helgaas authored and Konrad Rzeszutek Wilk committed May 10, 2013
1 parent 4be6bfe commit 7c86617
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/x86/pci/xen.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,7 @@ static int xen_initdom_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
int pos;
u32 table_offset, bir;

pos = pci_find_capability(dev, PCI_CAP_ID_MSIX);

pos = dev->msix_cap;
pci_read_config_dword(dev, pos + PCI_MSIX_TABLE,
&table_offset);
bir = (u8)(table_offset & PCI_MSIX_TABLE_BIR);
Expand Down

0 comments on commit 7c86617

Please sign in to comment.