zephyr/subsys/pm
Gerard Marull-Paretas a650c6c554 pm: policy: allow multiple subscribers to latency changes
Current API allowed to get notified when the maximum system latency
changes, however, a single callback was allowed. The design was intended
for SoC specific actions when latency changes. However, in some cases
drivers may also want to know the current maximum latency to perform
local actions if other parts of the system modify it.

This patch updates the API with a pair of subscribe/unsubscribe calls to
achieve such goal. Tests have been updated to show how the API can be
used.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-08-03 11:19:17 +02:00
..
CMakeLists.txt
Kconfig arch: Introduce S2RAM interface 2022-07-11 15:26:26 +02:00
device.c pm: device: store power up failures 2022-07-12 10:07:18 +02:00
device_runtime.c pm: device_runtime: detect power up failures 2022-07-12 10:07:18 +02:00
pm.c pm: Introduce CONFIG_PM_DEVICE_RUNTIME_EXCLUSIVE 2022-06-22 12:24:43 +02:00
pm_stats.c
pm_stats.h
policy.c pm: policy: allow multiple subscribers to latency changes 2022-08-03 11:19:17 +02:00
state.c