zephyr/tests
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
..
application_development
arch tests: arch: riscv: make sure that `gp` reg can't be corrupted 2024-11-13 19:08:54 -08:00
benchmarks tests: benchmarks/latency: limit CPU to 1 for Intel ADSP ACE 2024-11-16 15:54:36 -05:00
bluetooth tests: Bluetooth: Tester: Set conn = NULL in btp_gap 2024-11-16 15:25:41 -05:00
boards samples: sensor: qdec: change pins used for qdec nrf54h20dk 2024-10-31 09:22:58 -05:00
boot tests: mcuboot: remove twr_kv58f220m from allowed list. 2024-10-25 08:52:44 +02:00
bsim Bluetooth: host: Remove useless alloc_buf_cb in test 2024-11-16 15:55:02 -05:00
cmake tests: add twister tests for CMake board and SoC extension 2024-10-26 17:14:06 +02:00
crypto tests: crypto: tinycrypt: Fix premature Ztest end 2024-11-08 11:35:22 -06:00
drivers tests: drivers: build_all: uart: add uart interrupt driven 2024-11-16 15:26:24 -05:00
integration/kernel
kconfig
kernel sys: util: use BITS_PER_BYTE macro instead of the magic number 8 2024-11-16 15:22:35 -05:00
lib devicetree: Add DT_HAS_ALIAS macro 2024-11-16 15:55:10 -05:00
misc
modules
net tests: net: conn_mgr_monitor: Increase the sleep between states 2024-11-16 15:55:49 -05:00
posix test: posix: timer: fix format 2024-11-16 15:26:42 -05:00
robot
subsys pm: policy: separate default policy and events 2024-11-16 15:56:02 -05:00
unit
ztest tests: Support targeting unit_testing with and without qualifier 2024-10-25 18:51:10 +01:00
test_config.yaml