Skip to content

Commit 4ec6a9c

Browse files
committed
PM / runtime: Update documentation to reflect the current code flow
The runtime PM documentation in runtime_pm.txt has not been updated after some changes to the system suspend and resume core code, so update it to reflect the current code flow. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Alan Stern <stern@rowland.harvard.edu>
1 parent d6d211d commit 4ec6a9c

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

‎Documentation/power/runtime_pm.txt‎

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -648,15 +648,17 @@ The PM core does its best to reduce the probability of race conditions between
648648
the runtime PM and system suspend/resume (and hibernation) callbacks by carrying
649649
out the following operations:
650650

651-
* During system suspend it calls pm_runtime_get_noresume() and
652-
pm_runtime_barrier() for every device right before executing the
653-
subsystem-level .suspend() callback for it. In addition to that it calls
654-
__pm_runtime_disable() with 'false' as the second argument for every device
655-
right before executing the subsystem-level .suspend_late() callback for it.
656-
657-
* During system resume it calls pm_runtime_enable() and pm_runtime_put()
658-
for every device right after executing the subsystem-level .resume_early()
659-
callback and right after executing the subsystem-level .resume() callback
651+
* During system suspend pm_runtime_get_noresume() is called for every device
652+
right before executing the subsystem-level .prepare() callback for it and
653+
pm_runtime_barrier() is called for every device right before executing the
654+
subsystem-level .suspend() callback for it. In addition to that the PM core
655+
calls __pm_runtime_disable() with 'false' as the second argument for every
656+
device right before executing the subsystem-level .suspend_late() callback
657+
for it.
658+
659+
* During system resume pm_runtime_enable() and pm_runtime_put() are called for
660+
every device right after executing the subsystem-level .resume_early()
661+
callback and right after executing the subsystem-level .complete() callback
660662
for it, respectively.
661663

662664
7. Generic subsystem callbacks

0 commit comments

Comments
 (0)