zephyr/tests/kernel
Peter Mitsis 5710e034e7 kernel: Introduce _THREAD_SLEEPING state bit
At the present time, Zephyr does has overlap between sleeping and
suspending. Not only should sleeping and suspended be orthogonal
states, but we should ensure users always employ the correct API.
For example, to wake a sleeping thread, k_wakeup() should be used,
and to resume a suspended thread, k_thread_resume() should be used.
However, at the present time k_thread_resume() can be used on a
thread that called k_sleep(K_FOREVER). Sleeping should have nothing
to do with suspension.

This commit introduces the new _THREAD_SLEEPING thread state along
with some prep-work to facilitate the decoupling of the sleeping and
suspended thread states.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2024-12-18 18:17:03 +01: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 Revert "tests: disable NRF5 entropy driver on some bsim/qemu tests" 2024-12-12 00:15:39 +00:00
device tests: kernel: exclude xenvm with GICv3 from device tests 2024-12-05 22:09:31 +01:00
early_sleep
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
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: demand_paging/mem_map: move malloc config to prj.conf 2024-12-07 16:01:10 +00: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
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 samples, tests: remove usage of space-separated lists 2024-12-04 14:14:53 -05:00
pending samples, tests: remove usage of space-separated lists 2024-12-04 14:14:53 -05:00
pipe arch: define struct arch_esf and deprecate z_arch_esf_t 2024-06-04 14:02:51 -05:00
poll test: k_msgq_put should trigger reschedule 2024-12-14 01:04:43 +01: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 Revert "tests: disable NRF5 entropy driver on some bsim/qemu tests" 2024-12-12 00:15:39 +00: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 tests: guard variable used only with CONFIG_TRACE_SCHED_IPI 2024-12-17 20:54:48 +01:00
smp_abort arch/x86: Make irq_offload SMP-safe on x86_64 2024-06-04 07:57:06 +02:00
smp_boot_delay samples, tests: remove usage of space-separated lists 2024-12-04 14:14:53 -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: Introduce _THREAD_SLEEPING state bit 2024-12-18 18:17:03 +01:00
tickless/tickless_concept tests: tickless: do not enable PM 2024-04-25 09:55:08 +00:00
timer tests: kernel: timer: timer_behavior: Reduce tick frequency(nrf54l20pdk) 2024-12-02 14:23:22 +01:00
usage/thread_runtime_stats arch: deprecate _current 2024-11-23 20:12:24 -05:00
workq tests: kernel: Add support for stopping workqueues 2024-12-12 11:07:39 +01:00
xip everywhere: replace double words 2024-06-25 06:05:35 -04:00