doc: pm: document system pm limitations

Document the limitations of system power management when it comes to
transitions that are run from the idle thread.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
This commit is contained in:
Jordan Yates 2022-03-20 09:13:43 +10:00 committed by Carles Cufí
commit 37e78175e5
2 changed files with 8 additions and 0 deletions

View file

@ -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
******************************************

View file

@ -1,3 +1,5 @@
.. _pm-system:
System Power Management
#######################