Skip to content

Commit

Permalink
core/sched.c: fix _runqueue_pop() removing wrong thread
Browse files Browse the repository at this point in the history
  • Loading branch information
derMihai committed Oct 23, 2024
1 parent 5c06502 commit 13d9b9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 13d9b9c

Please sign in to comment.