zephyr/include/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
..
device_runtime.h pm: device: runtime: Add API to check if it is enabled 2021-11-08 19:54:12 -05:00
device.h pm: device_runtime: Use pm flags for runtime state 2021-12-06 13:41:25 -05:00
pm.h pm: remove irrelevant type qualifier on pm_power_state_next_get 2021-12-01 14:03:55 -06:00
policy.h pm: policy: Add cpu information in the API 2021-11-06 10:21:53 -04:00
state.h pm: state: PM_STATE_DT_ITEMS_LEN->DT_NUM_CPU_POWER_STATES 2021-12-04 12:33:57 -05:00