zephyr/tests/kernel
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
..
cache boards: rename qemu_xtensa to qemu_xtensa/dc233c 2024-10-02 09:58:36 +02:00
common tests: kernel: common: optimize filters 2024-11-21 19:22:35 -05:00
condvar/condvar_api tests: fix thread function signatures 2023-10-30 12:24:34 +01:00
context arch: deprecate _current 2024-11-23 20:12:24 -05:00
device tests: kernel: device: Add API sections tests 2024-11-27 08:15:22 +01:00
early_sleep tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
events tests kernel: Exclude posix arch for userspace tests 2023-10-24 09:05:29 +02:00
fatal arch: deprecate _current 2024-11-23 20:12:24 -05:00
fifo everywhere: replace double words 2024-06-25 06:05:35 -04:00
fpu_sharing tests: kernel: fpu_sharing Fixed missing struct defs for ARM 2024-11-16 14:57:17 -05:00
gen_isr_table tests: gen_isr_table: multilevel: cleanup filter & Kconfigs 2024-10-02 10:08:19 +02:00
interrupt soc: nordic: Introduce the nRF54L05 and nRF54L10 2024-11-21 09:26:38 +01:00
ipi_cascade arch: deprecate _current 2024-11-23 20:12:24 -05:00
ipi_optimize tests: Add IPI_OPTIMIZE tests 2024-06-04 22:35:54 -04:00
lifo tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
mbox hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
mem_heap/k_heap_api tests: move shared_multi_heap to tests/lib 2023-12-13 17:27:54 -05:00
mem_protect tests: mem_map: reduce runtime filters 2024-11-25 21:51:36 +01:00
mem_slab hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
mp arch: rename arch_start_cpu() to arch_cpu_start() 2024-03-25 09:58:35 +00:00
msgq tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
mutex tests: copy intel_adsp_ace30_ptl.conf to *_sim.conf 2024-11-18 13:18:22 -05:00
obj_core tests: remove misnamed platforms from platform_exclude 2024-09-16 10:07:51 +02:00
obj_tracking tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
pending tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
pipe arch: define struct arch_esf and deprecate z_arch_esf_t 2024-06-04 14:02:51 -05:00
poll tests: poll: fix misconstructed k_poll_event test 2024-06-12 10:24:21 +02:00
profiling/profiling_api tests: kernel: remove pm from profiling test 2024-04-25 09:55:08 +00:00
queue tests: copy intel_adsp_ace30_ptl.conf to *_sim.conf 2024-11-18 13:18:22 -05:00
sched everywhere: replace double words 2024-06-25 06:05:35 -04:00
semaphore tests: kernel: fix test groups for semaphore/mutex 2024-09-17 05:24:09 -04:00
sleep tests: sleep: reduce verbosity 2024-01-09 09:58:57 +01:00
smp arch: deprecate _current 2024-11-23 20:12:24 -05:00
smp_abort arch/x86: Make irq_offload SMP-safe on x86_64 2024-06-04 07:57:06 +02:00
smp_boot_delay hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
smp_suspend tests: smp_suspend: Add configurable delay 2024-01-26 15:55:27 +00:00
spinlock arch: rename arch_start_cpu() to arch_cpu_start() 2024-03-25 09:58:35 +00:00
stack/stack everywhere: replace double words 2024-06-25 06:05:35 -04:00
threads kernel/sched: Eliminate PRESTART thread state 2024-11-27 10:38:05 -05:00
tickless/tickless_concept tests: tickless: do not enable PM 2024-04-25 09:55:08 +00:00
timer python: Format and sort imports 2024-11-25 10:07:13 +01:00
usage/thread_runtime_stats arch: deprecate _current 2024-11-23 20:12:24 -05:00
workq tests: workqueue: avoid filters 2024-11-25 21:51:36 +01:00
xip everywhere: replace double words 2024-06-25 06:05:35 -04:00