]> git.baikalelectronics.ru Git - kernel.git/commit
PM: Use pm_runtime_put_sync in system resume
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 21 Dec 2009 01:46:11 +0000 (02:46 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 21 Dec 2009 01:46:11 +0000 (02:46 +0100)
commit994309ca4b02e3f9d2d05284905723b8101b0efc
tree522e5cbe200ba5ddcaf905a826b2a58159a441eb
parent05cc93ac04f85bfb65871d1e953b323a9dd70594
PM: Use pm_runtime_put_sync in system resume

This patch (as1317) fixes a bug in the PM core.  When a device is
resumed following a system sleep, the core decrements the device's
runtime PM usage counter but doesn't issue an idle notification if the
counter reaches 0.  This could prevent an otherwise unused device from
being runtime-suspended again after the system sleep.

The fix is to call pm_runtime_put_sync() instead of
pm_runtime_put_noidle().

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/main.c