diff options
author | Andrew Patterson <andrew.patterson@hp.com> | 2008-11-10 17:30:45 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-01-07 14:12:27 -0500 |
commit | 990a7ac5645883a833a11b900bb6f25b65dea65b (patch) | |
tree | 8644b7da9b41069d873d2b4dbe600bc5a828347d /include | |
parent | 8b62091e20215730be1b94b7cd135a78a3e692ca (diff) |
ACPI/PCI: call _OSC support during root bridge discovery
Add pci_acpi_osc_support() and call it when a PCI bridge is added. This
allows us to avoid having every individual PCI root bridge driver call
_OSC support for every root bridge in their probe functions, a
significant savings in boot time.
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pci-acpi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pci-acpi.h b/include/linux/pci-acpi.h index a9e4c34e9389..424f06f84cab 100644 --- a/include/linux/pci-acpi.h +++ b/include/linux/pci-acpi.h | |||
@@ -51,6 +51,7 @@ | |||
51 | #ifdef CONFIG_ACPI | 51 | #ifdef CONFIG_ACPI |
52 | extern acpi_status pci_osc_control_set(acpi_handle handle, u32 flags); | 52 | extern acpi_status pci_osc_control_set(acpi_handle handle, u32 flags); |
53 | extern acpi_status __pci_osc_support_set(u32 flags, const char *hid); | 53 | extern acpi_status __pci_osc_support_set(u32 flags, const char *hid); |
54 | int pci_acpi_osc_support(acpi_handle handle, u32 flags); | ||
54 | static inline acpi_status pci_osc_support_set(u32 flags) | 55 | static inline acpi_status pci_osc_support_set(u32 flags) |
55 | { | 56 | { |
56 | return __pci_osc_support_set(flags, PCI_ROOT_HID_STRING); | 57 | return __pci_osc_support_set(flags, PCI_ROOT_HID_STRING); |