PM: Provide generic subsystem-level callbacks
authorRafael J. Wysocki <rjw@sisk.pl>
Sat, 6 Mar 2010 20:28:37 +0000 (21:28 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Sat, 6 Mar 2010 20:28:37 +0000 (21:28 +0100)
commitd690b2cd222afc75320b9b8e9da7df02e9e630ca
tree41b7f13c7176bc74d7836a7ec585a5a456302ea9
parent87d1b3e60b55ef65f10054ccc319e5d67cf010e9
PM: Provide generic subsystem-level callbacks

There are subsystems whose power management callbacks only need to
invoke the callbacks provided by device drivers.  Still, their system
sleep PM callbacks should play well with the runtime PM callbacks,
so that devices suspended at run time can be left in that state for
a system sleep transition.

Provide a set of generic PM callbacks for such subsystems and
define convenience macros for populating dev_pm_ops structures.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Documentation/power/runtime_pm.txt
drivers/base/power/Makefile
drivers/base/power/generic_ops.c [new file with mode: 0644]
include/linux/pm.h
include/linux/pm_runtime.h