zephyr/subsys/portability/cmsis_rtos_v1
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
..
CMakeLists.txt
cmsis_kernel.c kernel/sched: Eliminate PRESTART thread state 2024-11-27 10:38:05 -05:00
cmsis_mailq.c
cmsis_mempool.c
cmsis_msgq.c
cmsis_mutex.c
cmsis_semaphore.c
cmsis_signal.c
cmsis_thread.c kernel/sched: Eliminate PRESTART thread state 2024-11-27 10:38:05 -05:00
cmsis_timer.c
cmsis_wait.c
Kconfig kconfig: replace known integer constants with variables 2024-07-27 20:49:15 +03:00