zephyr/tests/subsys/pm
Bjarki Arge Andreasen 14117b453d pm: policy: separate default policy and events
The default policy currently directly references the private
variable next_event from policy_events.c to then convert the cycle
of said event (if exists) to a kernel tick in the future, something
policy_events.c already implements and exposes through
pm_policy_next_event_ticks().

Additionally, the implementation of pm_policy_next_state() in
policy_default.c already gets the nearest kernel tick, wherein
the next event has already been accounted for in, see
implementation of pm_system_suspend().

This commit removes the redundant and layer violating computation
if the tick of the next event from policy_default.c and updates
the test test_pm_policy_events to not use default policy to
determine if pm_policy_next_event_ticks() is correct.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2024-11-16 15:56:02 -05:00
..
device_driver_init pm: s/power-domain/power-domains and add power-domain-names 2024-10-18 17:45:21 +01:00
device_power_domains pm: s/power-domain/power-domains and add power-domain-names 2024-10-18 17:45:21 +01:00
device_runtime_api
device_wakeup_api
policy_api pm: policy: separate default policy and events 2024-11-16 15:56:02 -05:00
power_domain pm: s/power-domain/power-domains and add power-domain-names 2024-10-18 17:45:21 +01:00
power_mgmt tests: subsys: pm: power_mgmt: fix incorrect use of OVERLAY_CONFIG 2024-10-24 14:06:54 +02:00
power_mgmt_multicore
power_mgmt_soc
power_states_api