zephyr/kernel
Peter Mitsis e55ac3ef65 kernel: Improve ordering in SMP k_thread_suspend()
The routine k_thread_suspend() has a fast path for non-SMP when
suspending the current thread. When SMP is enabled, it is expected
that the compiler drop the entire fast path checks because the whole
expression would always evaluate to false. However, the compiler has
been observed to only drop whole fast path check when the
"!IS_ENABLED(CONFIG_SMP)" condition appears at the beginning of the
fast path check.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-02-07 02:23:45 +01:00
..
include
paging
atomic_c.c
banner.c
busy_wait.c
CMakeLists.txt
compiler_stack_protect.c
condvar.c
cpu_mask.c
device.c
dynamic_disabled.c
dynamic.c
errno.c
events.c
fatal.c
float.c
futex.c
idle.c
init_static.c
init.c
ipi.c
irq_offload.c
Kconfig
Kconfig.device
Kconfig.init
Kconfig.mem_domain
Kconfig.obj_core
Kconfig.smp
Kconfig.vm
kheap.c
mailbox.c
main_weak.c
mem_domain.c
mem_slab.c
mempool.c
mmu.c
msg_q.c
mutex.c
nothread.c
obj_core.c
pipe.c
pipes.c
poll.c
priority_queues.c
queue.c
sched.c
sem.c
smp.c
spinlock_validate.c
stack.c
system_work_q.c
thread_monitor.c
thread.c
timeout.c
timer.c
timeslicing.c
usage.c
userspace_handler.c
userspace.c
version.c
work.c
xip.c