zephyr/tests/benchmarks
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
..
app_kernel tests: benchmarks: optimize filters and use platform_key. 2024-11-26 21:42:22 +01:00
cmsis_dsp boards: mps3: Add support for corstone300/an552 2024-10-26 03:58:05 +01:00
data_structure_perf tests: benchmarks: optimize filters and use platform_key. 2024-11-26 21:42:22 +01:00
footprints arch: deprecate _current 2024-11-23 20:12:24 -05:00
latency_measure tests: benchmarks: optimize filters and use platform_key. 2024-11-26 21:42:22 +01:00
mbedtls modules: mbedtls: rename CONFIG_MBEDTLS_MAC_*_ENABLED and rm duplicates 2024-05-29 08:39:26 +02:00
sched tests: benchmarks: optimize filters and use platform_key. 2024-11-26 21:42:22 +01:00
sched_queues tests: benchmarks: optimize filters and use platform_key. 2024-11-26 21:42:22 +01:00
sched_userspace tests: benchmarks: optimize filters and use platform_key. 2024-11-26 21:42:22 +01:00
sys_kernel tests: benchmarks: optimize filters and use platform_key. 2024-11-26 21:42:22 +01:00
thread_metric kernel/sched: Eliminate PRESTART thread state 2024-11-27 10:38:05 -05:00
wait_queues tests: benchmarks: optimize filters and use platform_key. 2024-11-26 21:42:22 +01:00