zephyr/subsys/pm
Krzysztof Chruściński 25173f71cd pm: device_runtime: Extend with synchronous runtime PM
In many cases suspending or resuming of a device is limited to
just a few register writes. Current solution assumes that those
operations may be blocking, asynchronous and take a lot of time.
Due to this assumption runtime PM API cannot be effectively used
from the interrupt context. Zephyr has few driver APIs which
can be used from an interrupt context and now use of runtime PM
is limited in those cases.

Patch introduces a new type of PM device - synchronous PM. If
device is specified as capable of synchronous PM operations then
device runtime getting and putting is executed in the critical
section. In that case, runtime API can be used from an interrupt
context. Additionally, this approach reduces RAM needed for
PM device (104 -> 20 bytes of RAM on ARM Cortex-M).

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2024-02-01 15:03:42 +01:00
..
CMakeLists.txt pm: policy: move constraints to policy API 2022-03-16 15:26:47 +01:00
device.c pm: device_runtime: Extend with synchronous runtime PM 2024-02-01 15:03:42 +01:00
device_runtime.c pm: device_runtime: Extend with synchronous runtime PM 2024-02-01 15:03:42 +01:00
Kconfig pm: policy: add check for device busy in policy 2023-09-15 14:51:50 -04:00
pm.c pm: Remove CURRENT_CPU macro 2024-01-19 13:49:54 +01:00
pm_stats.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
pm_stats.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
policy.c pm: policy: add check for device busy in policy 2023-09-15 14:51:50 -04:00
state.c pm: state: allow disabling certain power states 2023-07-26 16:49:00 +02:00