Skip to content

Commit 7c5ce5b

Browse files
Flavio Ceolinnashif
authored andcommitted
docs: pm: Improve residency policy documentation
Add information about exit latency time. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent eba2dc7 commit 7c5ce5b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/reference/power_management/index.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,16 @@ power savings, and with a minimum residency value (in device tree, see
135135
:zephyr_file:`dts/bindings/power/state.yaml`) less than or equal to
136136
the scheduled system idle time duration.
137137

138+
This policy also accounts for the time necessary to become active
139+
again. The core logic used by this policy to select the best power
140+
state is:
141+
142+
.. code-block:: c
143+
144+
if (time_to_next_scheduled_event >= (state.min_residency_us + state.exit_latency))) {
145+
return state
146+
}
147+
138148
Application
139149
-----------
140150

0 commit comments

Comments
 (0)