zephyr/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
bluetooth Bluetooth: Audio: API for the distribute broadcast code procedure 2024-11-16 15:27:10 -05:00
canbus
console
dap
debug debug: symtab: fix ignored type qualifiers on func return type 2024-11-06 09:52:36 -08:00
demand_paging sys: util: use BITS_PER_BYTE macro instead of the magic number 8 2024-11-16 15:22:35 -05:00
dfu
disk
dsp
emul
fb fb: cfb_shell: remove `dev` null check 2024-11-16 14:53:57 -05:00
fs fs: Fix null pointer exception caused by async fs_unmount 2024-11-07 18:06:58 -06:00
input
ipc ipc: icmsg & icbmsg: Fix alloc_tx_buffer() doxygen description 2024-10-24 13:15:35 +01:00
jwt jwt: remove TinyCrypt usage 2024-11-05 13:44:20 -06:00
llext LLEXT: add llext_section_offset() to replace llext_find_section() 2024-11-16 15:28:00 -05:00
logging nordic: Remove the nRF54H20 Engineering B 2024-11-16 15:09:14 -05:00
lorawan lorawan: replace booleans by atomic flags 2024-11-16 14:03:36 -05:00
mem_mgmt
mgmt mgmt: smp: shell: Respond on uart shell device when changed at runtime 2024-11-08 13:57:09 -06:00
modbus
modem modem: cmux: added validation of cmux frame length 2024-11-07 08:31:48 -06:00
net net: shell: ipv6: Print information about SLAAC addresses 2024-11-16 15:55:49 -05:00
pm pm: policy: separate default policy and events 2024-11-16 15:56:02 -05:00
portability
profiling
random random: random_timer.c Remove __GNUC__ ifdef 2024-11-06 10:11:58 -08:00
retention
rtio
sd
secure_storage
sensing
settings settings: introduce priority for commit 2024-10-24 22:04:07 +01:00
shell shell: backend: websocket: Fix socket service creation 2024-10-25 12:50:54 -05:00
sip_svc
stats
storage storage/stream_flash: Make context const where not modified 2024-10-25 22:45:33 +01:00
task_wdt
testsuite sys: util: use BITS_PER_BYTE macro instead of the magic number 8 2024-11-16 15:22:35 -05:00
timing
tracing
usb
zbus
CMakeLists.txt
Kconfig