zephyr/tests/subsys
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
..
bindesc
canbus/isotp
debug tests: debug/coredump: Change to call k_panic() for ISH SoCs 2024-11-08 15:55:36 -06:00
dfu tests: subsys: dfu: img_util: Increase stack size 2024-11-06 09:57:41 -08:00
display/cfb/basic
dsp boards: mps3: Add support for corstone300/an552 2024-10-26 03:58:05 +01:00
edac
emul
fs drivers: disk: mmc_subsys: remove CONFIG_MMC_VOLUME_NAME 2024-11-05 15:25:10 -06:00
input
ipc
jwt jwt: remove TinyCrypt usage 2024-11-05 13:44:20 -06:00
llext/simple LLEXT: add llext_section_offset() to replace llext_find_section() 2024-11-16 15:28:00 -05:00
logging
lorawan
mem_mgmt
mgmt tests: mgmt: mcumgr: Add transport_lorawan test 2024-10-25 14:00:48 +02:00
modbus
modem modem: cmux: added validation of cmux frame length 2024-11-07 08:31:48 -06:00
openthread
pm pm: policy: separate default policy and events 2024-11-16 15:56:02 -05:00
portability tests/samples: use platform_key on cmsis_rtos tests/samples 2024-10-31 09:23:30 -05:00
random/rng
rtio i2c: Drop transceive test, fix transfer call count 2024-10-22 18:29:34 -04:00
sd
secure_storage/psa sys: util: use BITS_PER_BYTE macro instead of the magic number 8 2024-11-16 15:22:35 -05:00
sensing
settings
settings_commit_prio settings: Add test for settings commit priority 2024-10-24 22:04:07 +01:00
shell tests: shell: limit build only config tests 2024-11-08 09:24:31 -06:00
sip_svc
storage tests: flash_map: Move SHA test to separate test scenario 2024-11-16 13:51:18 -05:00
testsuite/fff_fake_contexts tests: Support targeting unit_testing with and without qualifier 2024-10-25 18:51:10 +01:00
tracing/tracing_api
usb
zbus tests: zbus: publish_stats: Fix for non-zero boot delay 2024-11-06 09:52:58 -08:00