1
0
Files
linux/drivers
Rafael J. Wysocki e866500247 PM: Allow pm_runtime_suspend() to succeed during system suspend
The dpm_prepare() function increments the runtime PM reference
counters of all devices to prevent pm_runtime_suspend() from
executing subsystem-level callbacks.  However, this was supposed to
guard against a specific race condition that cannot happen, because
the power management workqueue is freezable, so pm_runtime_suspend()
can only be called synchronously during system suspend and we can
rely on subsystems and device drivers to avoid doing that
unnecessarily.

Make dpm_prepare() drop the runtime PM reference to each device
after making sure that runtime resume is not pending for it.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Kevin Hilman <khilman@ti.com>
2011-03-15 00:43:16 +01:00
..
2011-03-15 00:43:15 +01:00
2011-03-03 11:53:25 -05:00
2011-03-13 15:35:59 -07:00
2011-01-20 21:37:29 +10:30
2011-03-02 10:57:50 +01:00
2011-03-15 00:43:15 +01:00
2011-03-15 00:43:15 +01:00
2011-03-15 00:43:15 +01:00
2011-02-28 12:06:20 -08:00
2011-03-15 00:43:15 +01:00
2011-02-01 16:48:46 +02:00