PCI PM: make more PCI PM core functionality available to drivers
authorRafael J. Wysocki <rjw@sisk.pl>
Sat, 19 Jul 2008 12:39:24 +0000 (14:39 +0200)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 22 Jul 2008 21:25:38 +0000 (14:25 -0700)
commite5899e1b7d73e67de758a32174a859cc2586c0b9
tree2bb80ed1e52fb9981c6f44f6b0e7baa105585787
parentf42e86d95fa53d3a62b2795515da18b4f41b0480
PCI PM: make more PCI PM core functionality available to drivers

Make more PCI PM core functionality available to drivers

* Export pci_pme_capable() so that it can be called directly by
  drivers (for example, tg3 needs that).

* Move the state choosing part of pci_prepare_to_sleep() to a
  separate function, pci_target_state(), that can be called directly
  by drivers (for example, tg3 needs that).

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