1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 01:09:47 +01:00

core/sched.c: fix _runqueue_pop() removing wrong thread

This commit is contained in:
Mihai Renea 2024-10-23 15:08:49 +02:00
parent 5c06502c4d
commit ba71ba72a3
2 changed files with 2 additions and 1 deletions

View File

@ -252,7 +252,7 @@ static inline __attribute__((always_inline)) void _runqueue_pop(thread_t *thread
{
DEBUG("sched_set_status: removing thread %" PRIkernel_pid " from runqueue %" PRIu8 ".\n",
thread->pid, thread->priority);
clist_lpop(&sched_runqueues[thread->priority]);
clist_remove(&sched_runqueues[thread->priority], &thread->rq_entry);
if (!sched_runqueues[thread->priority].next) {
_clear_runqueue_bit(thread->priority);

View File

@ -12,6 +12,7 @@ BOARD_INSUFFICIENT_MEMORY := \
nucleo-f042k6 \
nucleo-f334r8 \
nucleo-l011k4 \
nucleo-l031k6 \
samd10-xmini \
stk3200 \
stm32f030f4-demo \