zephyr/kernel
Vadim Shakirov 73944c6157 kernel/sched: fix thread selection when ABORTING + PENDING
In commit d537267f, the check on thread abortion was moved from next_up
to z_get_next_switch_handle. However, next_up is also called from
z_swap_next_thread, so the check on thread abortion is now missing there.
This sometimes caused the thread to be stuck in ABORTING + PENDING state
during the test_smp_switch_torture in test/kernel/smp

To avoid such cases in the future, it is worth leaving the check in next_up

Signed-off-by: Vadim Shakirov <vadim.shakirov@syntacore.com>
2023-08-01 11:59:42 +02:00
..
include kernel: Fix wrap-around check in kernel/mmu.h 2023-08-01 09:51:33 +02:00
paging
CMakeLists.txt kernel: dynamic: declare dynamic stubs when disabled 2023-07-24 12:59:43 -04:00
Kconfig kernel: crude k_busy_wait() implementation 2023-07-19 21:42:41 -04:00
Kconfig.vm kernel: mmu: add direct-map support in z_phys_map() 2023-05-26 13:50:35 -04:00
atomic_c.c kernel/atomic_c.c: prevent usage in SMP configs 2023-05-23 08:53:39 +02:00
banner.c
busy_wait.c kernel: crude k_busy_wait() implementation 2023-07-19 21:42:41 -04:00
compiler_stack_protect.c
condvar.c
device.c device: make device dependencies optional 2023-06-21 09:32:05 +02:00
dynamic.c kernel: dynamic: remove unnecessary size assignment 2023-07-24 12:59:43 -04:00
dynamic_disabled.c kernel: dynamic: declare dynamic stubs when disabled 2023-07-24 12:59:43 -04:00
errno.c
events.c kernel: event modification functions return previous value 2023-07-07 09:24:25 +02:00
fatal.c
futex.c
idle.c kernel: allow for arch specific processing within busy loops 2023-05-25 08:25:11 +00:00
init.c pm: Fix cpus active count 2023-06-01 10:05:31 +02:00
kheap.c kernel/kheap: move to timepoint API 2023-07-25 09:12:26 +02:00
mailbox.c
main_weak.c
mem_domain.c
mem_slab.c iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
mempool.c
mmu.c kernel: mmu: add direct-map support in z_phys_map() 2023-05-26 13:50:35 -04:00
msg_q.c kernel: fix buffer overflow from incorrect K_MSGQ_DEFINE definition 2023-05-12 13:39:10 -04:00
mutex.c
pipes.c
poll.c
queue.c
sched.c kernel/sched: fix thread selection when ABORTING + PENDING 2023-08-01 11:59:42 +02:00
sem.c
smp.c SMP: fix build failure if SMP=y and SYS_CLOCK_EXISTS=n 2023-06-22 06:17:27 -04:00
stack.c
system_work_q.c
thread.c iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
timeout.c kernel/timeout: introduce the timepoint API 2023-07-25 09:12:26 +02:00
timer.c
usage.c
userspace.c kernel: userspace: Fix memory leak 2023-07-20 16:10:32 +00:00
userspace_handler.c kernel: userspace: Add k_object_alloc_size 2023-07-17 16:56:01 -04:00
version.c
work.c
xip.c