zephyr/kernel/include
Andy Ross 7cdf40541b kernel/sched: Eliminate PRESTART thread state
Traditionally threads have been initialized with a PRESTART flag set,
which gets cleared when the thread runs for the first time via either
its timeout or the k_thread_start() API.

But if you think about it, this is no different, semantically, than
SUSPENDED: the thread is prevented from running until the flag is
cleared.

So unify the two.  Start threads in the SUSPENDED state, point
everyone looking at the PRESTART bit to the SUSPENDED flag, and make
k_thread_start() be a synonym for k_thread_resume().

There is some mild code size savings from the eliminated duplication,
but the real win here is that we make space in the thread flags byte,
which had run out.

Signed-off-by: Andy Ross <andyross@google.com>
2024-11-27 10:38:05 -05: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 arch: add interface to dump privileged stack in coredump 2024-09-21 11:29:39 +02:00
kernel_internal.h arch: deprecate _current 2024-11-23 20:12:24 -05:00
kernel_offsets.h arch: riscv: fill all IRQ stacks with 0xAA 2024-09-13 09:17:34 +02:00
kernel_tls.h
ksched.h arch: deprecate _current 2024-11-23 20:12:24 -05:00
kswap.h arch: deprecate _current 2024-11-23 20:12:24 -05:00
kthread.h kernel/sched: Eliminate PRESTART thread state 2024-11-27 10:38:05 -05: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 build: namespace the generated headers with zephyr/ 2024-05-28 22:03:55 +02:00
priority_q.h kernel: Move run queue initialization 2024-11-16 15:20:15 -05:00
timeout_q.h kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
wait_q.h kernel: move priority queue handling to own file/header 2024-03-02 15:06:45 +01:00