• Rafael J. Wysocki's avatar
    ACPI / PM: Introduce __acpi_bus_get_power() · 5e6d4fe4
    Rafael J. Wysocki authored
    It sometimes is necessary to get the power state of an ACPI device
    without updating its device->power.state field, for example to
    avoid inconsistencies between device->power.state and the reference
    counters of the device's power resources.  For this purpose introduce
    __acpi_bus_get_power() that will return the given device's power
    state via a pointer (instead of modifying device->power.state)
    and make acpi_bus_get_power() use it.
    Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
    Signed-off-by: default avatarLen Brown <len.brown@intel.com>
    5e6d4fe4
bus.c 25.9 KB