zephyr/subsys/pm
Flavio Ceolin bbb8c91afa pm: Fix possible race condition in multicore
There is a race condition in a multicore system that happens when the
idle thread in a CPU checks if the state was forced, if not it will
call the policy manager. If a secondary core forces a state after that
this point the value returned by the policy will be rewritten.

Another case is, if a state is forced while a CPU is sleeping,
when this CPU resumes, the forced bit is cleared and the forced state
is never be used.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2022-05-13 08:48:29 -07:00
..
CMakeLists.txt pm: policy: move constraints to policy API 2022-03-16 15:26:47 +01:00
device_runtime.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
device.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
Kconfig pm: device: Dynamically add a device to a power domain 2022-04-18 17:25:01 -07:00
pm_stats.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
pm_stats.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
pm.c pm: Fix possible race condition in multicore 2022-05-13 08:48:29 -07:00
policy.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
state.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00