[PATCH 10/24][Resend] ACPI / hotplug / PCI: Rework acpiphp_no_hotplug()

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If a struct acpi_device pointer is passed to acpiphp_no_hotplug() instead of an ACPI handle, the function won't need to call acpi_bus_get_device(), which may be costly, any more. Then, trim_stale_devices() can call acpiphp_no_hotplug() passing the struct acpi_device

[PATCH 10/24][Resend] ACPI / hotplug / PCI: Rework acpiphp_no_hotplug()

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki rafael.j.wyso...@intel.com If a struct acpi_device pointer is passed to acpiphp_no_hotplug() instead of an ACPI handle, the function won't need to call acpi_bus_get_device(), which may be costly, any more. Then, trim_stale_devices() can call acpiphp_no_hotplug() passing