Skip to content

Commit

Permalink
doc: pm: document system pm limitations
Browse files Browse the repository at this point in the history
Document the limitations of system power management when it comes to
transitions that are run from the idle thread.

Signed-off-by: Jordan Yates <[email protected]>
  • Loading branch information
Jordan Yates authored and carlescufi committed May 6, 2022
1 parent 775030e commit 37e7817
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/services/pm/device.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ in transition between power states:
* Gate/Un-gate power.
* Mask/Un-mask interrupts.

.. note::

When using :ref:`pm-system`, device transitions can be run from the idle thread.
As functions in this context cannot block, transitions that intend to use blocking
API's **must** check whether they can do so with :c:func:`k_can_yield`.

Device Model with Power Management Support
******************************************

Expand Down
2 changes: 2 additions & 0 deletions doc/services/pm/system.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _pm-system:

System Power Management
#######################

Expand Down

0 comments on commit 37e7817

Please sign in to comment.