docs: pm: Improve residency policy documentation
Add information about exit latency time. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
eba2dc7e9b
commit
7c5ce5ba51
1 changed files with 10 additions and 0 deletions
|
@ -135,6 +135,16 @@ power savings, and with a minimum residency value (in device tree, see
|
||||||
:zephyr_file:`dts/bindings/power/state.yaml`) less than or equal to
|
:zephyr_file:`dts/bindings/power/state.yaml`) less than or equal to
|
||||||
the scheduled system idle time duration.
|
the scheduled system idle time duration.
|
||||||
|
|
||||||
|
This policy also accounts for the time necessary to become active
|
||||||
|
again. The core logic used by this policy to select the best power
|
||||||
|
state is:
|
||||||
|
|
||||||
|
.. code-block:: c
|
||||||
|
|
||||||
|
if (time_to_next_scheduled_event >= (state.min_residency_us + state.exit_latency))) {
|
||||||
|
return state
|
||||||
|
}
|
||||||
|
|
||||||
Application
|
Application
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue