e2058a9537
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> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
device.c | ||
device_runtime.c | ||
Kconfig | ||
pm.c | ||
pm_stats.c | ||
pm_stats.h | ||
policy.c | ||
state.c |