aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlexander Chiang <achiang@hp.com>2009-06-10 15:55:30 -0400
committerLen Brown <len.brown@intel.com>2009-06-17 23:22:16 -0400
commit499650de6906722184b639989b47227a362b62f8 (patch)
treef0920b27dc659fb976f3ac2ca77bca6a386cd6c0 /include
parentc22d7f5a389dad15de448b142f44e4000b3426f0 (diff)
ACPI: eviscerate pci_bind.c
Now that we can dynamically convert an ACPI CA handle to a struct pci_dev at runtime, there's no need to statically bind them during boot. acpi_pci_bind/unbind are vastly simplified, and are only used to evaluate _PRT methods on P2P bridges and non-bridge children. This patch also changes the time-space tradeoff ever so slightly. Looking up the ACPI-PCI binding is never in the performance path, and by eliminating this caching, we save 24 bytes for each _ADR device in the ACPI namespace. This patch lays further groundwork to eventually eliminate the acpi_driver_ops.bind callback. Signed-off-by: Alex Chiang <achiang@hp.com> Acked-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/acpi/acpi_drivers.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h
index dbe3989952ee..2740a2894837 100644
--- a/include/acpi/acpi_drivers.h
+++ b/include/acpi/acpi_drivers.h
@@ -100,8 +100,7 @@ struct pci_bus;
100 100
101struct pci_dev *acpi_get_pci_dev(acpi_handle); 101struct pci_dev *acpi_get_pci_dev(acpi_handle);
102acpi_status acpi_get_pci_id(acpi_handle handle, struct acpi_pci_id *id); 102acpi_status acpi_get_pci_id(acpi_handle handle, struct acpi_pci_id *id);
103int acpi_pci_bind_root(struct acpi_device *device, struct acpi_pci_id *id, 103int acpi_pci_bind_root(struct acpi_device *device);
104 struct pci_bus *bus);
105 104
106/* Arch-defined function to add a bus to the system */ 105/* Arch-defined function to add a bus to the system */
107 106