diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2011-02-12 01:42:41 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2011-02-24 19:56:53 +0100 |
commit | 7d0a253f64a9ae6ae57be78fe879be907e1346d4 (patch) | |
tree | f869111bd23d0326efce9474a6990b2009227ffa /kernel | |
parent | 4a67dd2c6de375371b169f374b4d9f6d5b2607cd (diff) |
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>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions