zephyr/tests/kernel/threads
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
..
dynamic_thread arch: define struct arch_esf and deprecate z_arch_esf_t 2024-06-04 14:02:51 -05:00
dynamic_thread_stack arch: define struct arch_esf and deprecate z_arch_esf_t 2024-06-04 14:02:51 -05:00
no-multithreading Revert "tests: kernel: update test case with sys_clock_hw_cycles_per_sec" 2024-05-06 14:52:29 +03:00
thread_apis kernel/sched: Eliminate PRESTART thread state 2024-11-27 10:38:05 -05:00
thread_error_case tests: thread_error_case: fix incorrect userspace filtering 2024-11-20 15:58:15 -05:00
thread_init
thread_stack samples: tests: bluetooth: Add support for frdm_rw612 2024-06-10 07:02:06 -07:00
tls arch: kernel: lib: toolchain: Standardize TLS keyword 2024-09-23 10:01:48 +02:00