mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
core/sched.c: fix _runqueue_pop() removing wrong thread
This commit is contained in:
parent
5c06502c4d
commit
ba71ba72a3
@ -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);
|
||||
|
@ -12,6 +12,7 @@ BOARD_INSUFFICIENT_MEMORY := \
|
||||
nucleo-f042k6 \
|
||||
nucleo-f334r8 \
|
||||
nucleo-l011k4 \
|
||||
nucleo-l031k6 \
|
||||
samd10-xmini \
|
||||
stk3200 \
|
||||
stm32f030f4-demo \
|
||||
|
Loading…
Reference in New Issue
Block a user