kernel-fxtec-pro1x/drivers/base/power
Alan Stern 1bfee5bc86 PM / Runtime: Merge synchronous and async runtime routines
This patch (as1423) merges the asynchronous routines
__pm_request_idle(), __pm_request_suspend(), and __pm_request_resume()
with their synchronous counterparts.  The RPM_ASYNC bitflag argument
serves to indicate what sort of operation to perform.

In the course of performing this merger, it became apparent that the
various functions don't all behave consistenly with regard to error
reporting and cancellation of outstanding requests.  A new routine,
rpm_check_suspend_allowed(), was written to centralize much of the
testing, and the other functions were revised to follow a simple
algorithm:

	If the operation is disallowed because of the device's
	settings or current state, return an error.

	Cancel pending or scheduled requests of lower priority.

	Schedule, queue, or perform the desired operation.

A few special cases and exceptions are noted in comments.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
2010-10-17 01:57:46 +02:00
..
generic_ops.c PM / Runtime: Lenient generic runtime pm callbacks 2010-10-17 01:57:41 +02:00
main.c PM: Fix potential issue with failing asynchronous suspend 2010-10-17 01:57:43 +02:00
Makefile PM: Make it possible to avoid races between wakeup and system sleep 2010-07-19 01:58:48 +02:00
power.h PM / Wakeup: Introduce wakeup source objects and event statistics (v3) 2010-10-17 01:57:43 +02:00
runtime.c PM / Runtime: Merge synchronous and async runtime routines 2010-10-17 01:57:46 +02:00
sysfs.c PM / Wakeup: Introduce wakeup source objects and event statistics (v3) 2010-10-17 01:57:43 +02:00
trace.c driver core: struct device - replace bus_id with dev_name(), dev_set_name() 2009-01-06 10:44:31 -08:00
wakeup.c PM / Wakeup: Introduce wakeup source objects and event statistics (v3) 2010-10-17 01:57:43 +02:00