Skip to content

Commit

Permalink
Merge pull request #20938 from derMihai/mir/fix_runqueue_pop
Browse files Browse the repository at this point in the history
core/sched.c: fix _runqueue_pop() removing wrong thread
  • Loading branch information
benpicco authored Oct 23, 2024
2 parents faa1003 + 13d9b9c commit 0ad38f6
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 0ad38f6

Please sign in to comment.