aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/power/runtime_pm.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/power/runtime_pm.txt b/Documentation/power/runtime_pm.txt
index 0e856088db7c..5336149f831b 100644
--- a/Documentation/power/runtime_pm.txt
+++ b/Documentation/power/runtime_pm.txt
@@ -789,6 +789,16 @@ will behave normally, not taking the autosuspend delay into account.
789Similarly, if the power.use_autosuspend field isn't set then the autosuspend 789Similarly, if the power.use_autosuspend field isn't set then the autosuspend
790helper functions will behave just like the non-autosuspend counterparts. 790helper functions will behave just like the non-autosuspend counterparts.
791 791
792Under some circumstances a driver or subsystem may want to prevent a device
793from autosuspending immediately, even though the usage counter is zero and the
794autosuspend delay time has expired. If the ->runtime_suspend() callback
795returns -EAGAIN or -EBUSY, and if the next autosuspend delay expiration time is
796in the future (as it normally would be if the callback invoked
797pm_runtime_mark_last_busy()), the PM core will automatically reschedule the
798autosuspend. The ->runtime_suspend() callback can't do this rescheduling
799itself because no suspend requests of any kind are accepted while the device is
800suspending (i.e., while the callback is running).
801
792The implementation is well suited for asynchronous use in interrupt contexts. 802The implementation is well suited for asynchronous use in interrupt contexts.
793However such use inevitably involves races, because the PM core can't 803However such use inevitably involves races, because the PM core can't
794synchronize ->runtime_suspend() callbacks with the arrival of I/O requests. 804synchronize ->runtime_suspend() callbacks with the arrival of I/O requests.