From: Rafael J. Wysocki Date: Sat, 12 Feb 2011 00:42:41 +0000 (+0100) Subject: PM: Allow pm_runtime_suspend() to succeed during system suspend X-Git-Tag: v2.6.39-rc1~484^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8665002477f0278f84f898145b1f141ba26ee26;p=pandora-kernel.git 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 Acked-by: Kevin Hilman --- Reading git-diff-tree failed