提交 7c86617d 编写于 作者: B Bjorn Helgaas 提交者: Konrad Rzeszutek Wilk

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: NJan Beulich <jbeulich@suse.com>
Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
上级 4be6bfe2
...@@ -295,8 +295,7 @@ static int xen_initdom_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) ...@@ -295,8 +295,7 @@ static int xen_initdom_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
int pos; int pos;
u32 table_offset, bir; 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, pci_read_config_dword(dev, pos + PCI_MSIX_TABLE,
&table_offset); &table_offset);
bir = (u8)(table_offset & PCI_MSIX_TABLE_BIR); bir = (u8)(table_offset & PCI_MSIX_TABLE_BIR);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册