PCI PM: Use pci_set_power_state during early resume
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 16 Mar 2009 21:40:08 +0000 (22:40 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 30 Mar 2009 19:46:55 +0000 (21:46 +0200)
commitf00a20ef46b1795c495869163a9a7333f899713a
treec5992f03dc67c1492ac06d0191024e4676f6cc5f
parent57ef80266e14ecc363380268fedc64e519047b4a
PCI PM: Use pci_set_power_state during early resume

Once we have allowed timer interrupts to be enabled during the early
phase of resuming devices, we are now able to use the generic
pci_set_power_state() to put PCI devices into D0 at that time.  Then,
the platform-specific PM code will have a chance to handle devices
that don't implement the native PCI PM or that require some
additional, platform-specific operations to be carried out to power
them up.  Also, by doing this we can simplify the code quite a bit.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci.c