1
linux/drivers/base/power
Alan Stern 240c7337a4 PM: Allow runtime_suspend methods to call pm_schedule_suspend()
This patch (as1361) changes the runtime PM interface slightly; it
allows suspend requests to be scheduled while the runtime_suspend
method is running.  If the method succeeds then the scheduled request
is cancelled, whereas if the method fails then an idle notification is
sent only if no request was scheduled.

Being able to schedule suspend requests from within a runtime_suspend
method is useful for drivers that need to test for idleness and
suspend the device all while holding a single spinlock, or for drivers
that want to check for idleness by polling.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
2010-05-10 23:08:16 +02:00
..
generic_ops.c PM: Provide generic subsystem-level callbacks 2010-03-06 21:28:37 +01:00
main.c power: support _noirq actions on device types and classes 2010-03-24 11:00:02 +01:00
Makefile PM: Provide generic subsystem-level callbacks 2010-03-06 21:28:37 +01:00
power.h PM: Add a switch for disabling/enabling asynchronous suspend/resume 2010-02-26 20:39:10 +01:00
runtime.c PM: Allow runtime_suspend methods to call pm_schedule_suspend() 2010-05-10 23:08:16 +02:00
sysfs.c PM: Add facility for advanced testing of async suspend/resume 2010-02-26 20:39:10 +01:00
trace.c driver core: struct device - replace bus_id with dev_name(), dev_set_name() 2009-01-06 10:44:31 -08:00