summaryrefslogtreecommitdiffstats
path: root/include/linux/suspend.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2011-02-12 01:42:41 +0100
committerRafael J. Wysocki <rjw@sisk.pl>2011-03-15 00:43:16 +0100
commite8665002477f0278f84f898145b1f141ba26ee26 (patch)
treef22348cc3c0cf341216d422e01d2ac033973a0a5 /include/linux/suspend.h
parent88a6f33e4d7143f94f8e787fa4065ac873507984 (diff)
downloadblackbird-op-linux-e8665002477f0278f84f898145b1f141ba26ee26.tar.gz
blackbird-op-linux-e8665002477f0278f84f898145b1f141ba26ee26.zip
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 'include/linux/suspend.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud