zephyr/subsys/pm
Flavio Ceolin e2058a9537 pm: Fix a corner case when policy returns NULL
When the policy returns NULL pm_system_suspend was assuming that
the current state in z_cpus_pm_state was ACTIVE, since that is the
state set after the core wakes and return to this function. The
problem is that in cases where the cpu does not preserve the context,
and returns to this function, z_cpus_pm_state has the value of the
last state used and the cpu use it again.

Fix it setting z_cpus_pm_state to ACTIVE every time the policy returns
NULL.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2024-03-20 07:38:56 -05: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: Simplify runtime_enable 2024-02-06 09:52:38 +01:00
Kconfig pm: policy: add check for device busy in policy 2023-09-15 14:51:50 -04:00
pm.c pm: Fix a corner case when policy returns NULL 2024-03-20 07:38:56 -05: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