summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/power.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2008-07-07 03:32:52 +0200
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-07-08 01:25:43 +0200
commit44e4e66eeae5338b3ca0b28f8352e60bf18d5ba8 (patch)
tree27c32f382f7af839733cbdc5dedf4fc979708a05 /drivers/acpi/power.c
parentPCI: Introduce platform_pci_power_manageable function (diff)
downloadlinux-44e4e66eeae5338b3ca0b28f8352e60bf18d5ba8.tar.xz
linux-44e4e66eeae5338b3ca0b28f8352e60bf18d5ba8.zip
PCI: rework pci_set_power_state function to call platform first
Rework pci_set_power_state() so that the platform callback is invoked before the native mechanism, if necessary. Also, make the function check if the device is power manageable by the platform before invoking the platform callback. This may matter if the device dependent on additional power resources controlled by the platform is being put into D0, in which case those power resources must be turned on before we attempt to handle the device itself. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/acpi/power.c')
0 files changed, 0 insertions, 0 deletions