zephyr/kernel/include
Krzysztof Chruściński 6d35969a55 kernel: sched: Optimize sleeping function
Accessing system timer registers can be costly and it shall be avoided
if possible. When thread is waken up in z_tick_sleep it may be because
timeout expired or because thread was waken up before sleeping period
passed.

Add function to detect if timeout is aborted (before it was expired).
Use it in the sleep function and avoid reading system ticks if timeout
was not aborted.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-04-15 19:09:33 +02:00
..
gen_offset.h arch: remove the use of z_arch_esf_t completely from internal 2024-06-04 14:02:51 -05:00
ipi.h kernel: Add CONFIG_IPI_OPTIMIZE 2024-06-04 22:35:54 -04:00
kernel_arch_interface.h kernel: arch: move arch_swap() declaration 2024-12-11 21:33:49 +01:00
kernel_internal.h kernel: mempool: decouple simple alloc from aligned_alloc 2025-04-01 22:13:04 +02:00
kernel_offsets.h kernel: Move current_fp field out of z_kernel 2025-03-14 05:47:10 +01:00
kernel_tls.h linker: Round TLS sizes up in linker script 2024-02-25 22:28:56 -05:00
ksched.h kernel: fix void* to k_thread_entry_t conversion 2025-01-29 12:51:41 +01:00
kswap.h kernel: Remove clearing of swap_ok in do_swap() 2025-01-28 07:57:20 +01:00
kthread.h kernel: Streamline z_is_thread_ready() 2025-01-28 18:14:22 +01:00
mmu.h kernel: mm: rename z_num_pagefaults_get to k_mem_num_* 2024-06-12 21:13:26 -04:00
offsets_short.h kernel: Move current_fp field out of z_kernel 2025-03-14 05:47:10 +01:00
priority_q.h kernel: rename 'dumb' scheduler and simply call it 'simple' 2025-03-15 00:34:58 +01:00
timeout_q.h kernel: sched: Optimize sleeping function 2025-04-15 19:09:33 +02:00
wait_q.h kernel: move priority queue handling to own file/header 2024-03-02 15:06:45 +01:00