]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
PCI PM: Introduce pci_prepare_to_sleep and pci_back_from_sleep
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 7 Jul 2008 01:35:26 +0000 (03:35 +0200)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 7 Jul 2008 23:26:33 +0000 (16:26 -0700)
commit404cc2d8ce41ed4031958fba8e633767e8a2e028
treed679e1ea92d6ae8e72309c02197fd5f1480651fb
parenteb9d0fe40e313c0a74115ef456a2e43a6c8da72f
PCI PM: Introduce pci_prepare_to_sleep and pci_back_from_sleep

Introduce functions pci_prepare_to_sleep() and pci_back_from_sleep(),
to be used by the PCI drivers that want to place their devices into
the lowest power state appropiate for them (PCI_D3hot, if the device
is not supposed to wake up the system, or the deepest state from
which the wake-up is possible, otherwise) while the system is being
prepared to go into a sleeping state and to put them back into D0
during the subsequent transition to the working state.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci.c
include/linux/pci.h