PM: Introduce generic prepare and complete callbacks for subsystems
authorRafael J. Wysocki <rjw@sisk.pl>
Tue, 17 May 2011 21:26:21 +0000 (23:26 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Tue, 17 May 2011 21:26:21 +0000 (23:26 +0200)
commit6538df80194e305f1b78cafb556f4bb442f808b3
tree72927d33d82f0e9502811abfc10d722a7423fff2
parent91e7c75ba93c48a82670d630b9daac92ff70095d
PM: Introduce generic prepare and complete callbacks for subsystems

Introduce generic .prepare() and .complete() power management
callbacks, currently missing, that can be used by subsystems and
power domains and export them.  Provide NULL definitions of all
the generic system sleep callbacks for CONFIG_PM_SLEEP unset.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/generic_ops.c
include/linux/pm.h