diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-23 13:16:53 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-23 13:16:53 -0400 |
commit | a3415dc34f4a615a904852e7a9d0cc2877007e9e (patch) | |
tree | 0072b4b3f266c03220ffb2a9b329b2591f2a8e19 /drivers/pci/msi.c | |
parent | b4d0b08a4c3947c6ac004c9d83154ec5999c1861 (diff) | |
parent | 05a34f51ba451c65773ad6f1acf4cc089cc474d8 (diff) |
Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6
* 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6: (32 commits)
PCI hotplug: fix logic in Compaq hotplug controller bus speed setup
PCI: don't export linux/io.h from pci.h
PCI: PCI_QUIRKS depends on PCI
PCI hotplug: pciehp: poll data link layer link active
PCI hotplug: pciehp: fix possible memory leak in pcie_init
PCI: Workaround invalid P2P bridge bus numbers
PCI Hotplug: fakephp: add duplicate slot name debugging
PCI: Hotplug core: remove 'name'
PCI: shcphp: remove 'name' parameter
PCI: SGI Hotplug: stop managing bss_hotplug_slot->name
PCI: rpaphp: kmalloc/kfree slot->name directly
PCI: pciehp: remove 'name' parameter
PCI: ibmphp: stop managing hotplug_slot->name
PCI: fakephp: remove 'name' parameter
PCI, PCI Hotplug: introduce slot_name helpers
PCI: cpqphp: stop managing hotplug_slot->name
PCI: cpci_hotplug: stop managing hotplug_slot->name
PCI: acpiphp: remove 'name' parameter
PCI: prevent duplicate slot names
PCI Hotplug: serialize pci_hp_register and pci_hp_deregister
...
Diffstat (limited to 'drivers/pci/msi.c')
-rw-r--r-- | drivers/pci/msi.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index d2812013fd22..74801f7df9c9 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c | |||
@@ -759,3 +759,24 @@ void pci_msi_init_pci_dev(struct pci_dev *dev) | |||
759 | { | 759 | { |
760 | INIT_LIST_HEAD(&dev->msi_list); | 760 | INIT_LIST_HEAD(&dev->msi_list); |
761 | } | 761 | } |
762 | |||
763 | #ifdef CONFIG_ACPI | ||
764 | #include <linux/acpi.h> | ||
765 | #include <linux/pci-acpi.h> | ||
766 | static void __devinit msi_acpi_init(void) | ||
767 | { | ||
768 | if (acpi_pci_disabled) | ||
769 | return; | ||
770 | pci_osc_support_set(OSC_MSI_SUPPORT); | ||
771 | pcie_osc_support_set(OSC_MSI_SUPPORT); | ||
772 | } | ||
773 | #else | ||
774 | static inline void msi_acpi_init(void) { } | ||
775 | #endif /* CONFIG_ACPI */ | ||
776 | |||
777 | void __devinit msi_init(void) | ||
778 | { | ||
779 | if (!pci_msi_enable) | ||
780 | return; | ||
781 | msi_acpi_init(); | ||
782 | } | ||