diff --git a/src/kernel/scheduler.cpp b/src/kernel/scheduler.cpp index d0657c8..454f3ac 100644 --- a/src/kernel/scheduler.cpp +++ b/src/kernel/scheduler.cpp @@ -163,7 +163,7 @@ scheduler::check_promotions(run_queue &queue, uint64_t now) { for (auto &pri_list : queue.ready) { for (auto *tcb : pri_list) { - const thread *th = queue.current->thread; + const thread *th = tcb->thread; const bool constant = th->has_state(thread::state::constant); if (constant) continue;