diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2010-03-23 00:50:07 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2010-05-10 23:08:16 +0200 |
commit | 240c7337a4cd3d91b196c5ef97ad461b3a22fa09 (patch) | |
tree | 252a5938fa8c9f75925653876c32bef1a2ed899b /Documentation/power | |
parent | 228c54ef7a028d5a4b6606eb0c8035874d9b6788 (diff) | |
download | kernel_samsung_smdk4412-240c7337a4cd3d91b196c5ef97ad461b3a22fa09.tar.gz kernel_samsung_smdk4412-240c7337a4cd3d91b196c5ef97ad461b3a22fa09.tar.bz2 kernel_samsung_smdk4412-240c7337a4cd3d91b196c5ef97ad461b3a22fa09.zip |
PM: Allow runtime_suspend methods to call pm_schedule_suspend()
This patch (as1361) changes the runtime PM interface slightly; it
allows suspend requests to be scheduled while the runtime_suspend
method is running. If the method succeeds then the scheduled request
is cancelled, whereas if the method fails then an idle notification is
sent only if no request was scheduled.
Being able to schedule suspend requests from within a runtime_suspend
method is useful for drivers that need to test for idleness and
suspend the device all while holding a single spinlock, or for drivers
that want to check for idleness by polling.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'Documentation/power')
0 files changed, 0 insertions, 0 deletions