diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-11-02 00:40:45 (GMT) |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-11-14 23:15:18 (GMT) |
commit | 078eb12648c2f8bba48921f60ec2cec3e1bbc051 (patch) | |
tree | 18a669b4363a520e89213f9ae4d326611cab5cca /firmware/cxgb3 | |
parent | dee8370cc87e505ef39567f0974e73d59e75d76b (diff) | |
download | linux-fsl-qoriq-078eb12648c2f8bba48921f60ec2cec3e1bbc051.tar.xz |
ACPI / PM: Provide device PM functions operating on struct acpi_device
If the caller of acpi_bus_set_power() already has a pointer to the
struct acpi_device object corresponding to the device in question, it
doesn't make sense for it to go through acpi_bus_get_device(), which
may be costly, because it involves acquiring the global ACPI
namespace mutex.
For this reason, export the function operating on struct acpi_device
objects used internally by acpi_bus_set_power(), so that it may be
called instead of acpi_bus_set_power() in the above case, and change
its name to acpi_device_set_power().
Additionally, introduce two inline wrappers for checking ACPI PM
capabilities of devices represented by struct acpi_device objects.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'firmware/cxgb3')
0 files changed, 0 insertions, 0 deletions