Skip to content

Commit 7c86617

Browse files
bjorn-helgaaskonradwilk
authored andcommitted
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>
1 parent 4be6bfe commit 7c86617

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/x86/pci/xen.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,7 @@ static int xen_initdom_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
295295
int pos;
296296
u32 table_offset, bir;
297297

298-
pos = pci_find_capability(dev, PCI_CAP_ID_MSIX);
299-
298+
pos = dev->msix_cap;
300299
pci_read_config_dword(dev, pos + PCI_MSIX_TABLE,
301300
&table_offset);
302301
bir = (u8)(table_offset & PCI_MSIX_TABLE_BIR);

0 commit comments

Comments
 (0)