summaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/acpiphp.h
diff options
context:
space:
mode:
authorRafael J. Wysocki2014-02-04 00:39:20 +0100
committerRafael J. Wysocki2014-02-05 17:40:37 +0100
commitb2118d6a4073e394312072b6666cb576e18653b2 (patch)
tree7819efae2acbf5f5dd08828e2260e54b87ec50c7 /drivers/pci/hotplug/acpiphp.h
parentACPI / hotplug / PCI: Drop acpiphp_bus_trim() (diff)
downloadkernel-qcow2-linux-b2118d6a4073e394312072b6666cb576e18653b2.tar.gz
kernel-qcow2-linux-b2118d6a4073e394312072b6666cb576e18653b2.tar.xz
kernel-qcow2-linux-b2118d6a4073e394312072b6666cb576e18653b2.zip
ACPI / hotplug / PCI: Rework acpiphp_no_hotplug()
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 object it already has directly to that function. Make those changes and update slot_no_hotplug() accordingly. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/pci/hotplug/acpiphp.h')
0 files changed, 0 insertions, 0 deletions