zephyr/subsys/pm
Flavio Ceolin 3624b51f24 pm: device_runtime: Use pm flags for runtime state
Although we are declaring `pm->enable`as bitfield, it ends up using
more memory due memory alignment.

Since we already have an atomic variable for device flags, this commit
adds a new flag to indicates whether or not device runtime is enabled.
Doing it we are saving some extra bits and avoiding need to lock the
mutex in several situations since we can atomically check if pm
runtime is enabled on a given device.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2021-12-06 13:41:25 -05:00
..
policy pm: state: PM_STATE_DT_ITEMS_LEN->DT_NUM_CPU_POWER_STATES 2021-12-04 12:33:57 -05:00
CMakeLists.txt pm: pm_ctrl.c -> constraint.c 2021-11-23 18:12:15 +01:00
constraint.c pm: pm_ctrl.c -> constraint.c 2021-11-23 18:12:15 +01:00
device_runtime.c pm: device_runtime: Use pm flags for runtime state 2021-12-06 13:41:25 -05:00
device.c pm: device: Add pm_device_action_run 2021-11-24 14:21:50 -05:00
Kconfig pm: adjust PM_DEVICE prompt 2021-10-28 13:00:13 +02:00
pm_stats.c pm: stats: use pm_stats prefix 2021-11-23 18:12:15 +01:00
pm_stats.h pm: stats: pm_(start|stop)_timer -> pm_stats_(start|stop) 2021-11-23 18:12:15 +01:00
pm.c pm: remove irrelevant type qualifier on pm_power_state_next_get 2021-12-01 14:03:55 -06:00