From 55d6efd48513ae7d92e5f5779dcbda5047063d5e Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 1 Aug 2019 20:00:45 +0200 Subject: [PATCH] Scheduler: Fix bitrotted SCHEDULER_RUNNABLE_DEBUG code The runnable lists have moved from Thread to Scheduler. --- Kernel/Scheduler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/Scheduler.cpp b/Kernel/Scheduler.cpp index 978d889041..9f03e68f4b 100644 --- a/Kernel/Scheduler.cpp +++ b/Kernel/Scheduler.cpp @@ -375,14 +375,14 @@ bool Scheduler::pick_next() #ifdef SCHEDULER_RUNNABLE_DEBUG dbgprintf("Non-runnables:\n"); - Thread::for_each_nonrunnable([](Thread& thread) -> IterationDecision { + Scheduler::for_each_nonrunnable([](Thread& thread) -> IterationDecision { auto& process = thread.process(); dbgprintf("[K%x] %-12s %s(%u:%u) @ %w:%x\n", &process, thread.state_string(), process.name().characters(), process.pid(), thread.tid(), thread.tss().cs, thread.tss().eip); return IterationDecision::Continue; }); dbgprintf("Runnables:\n"); - Thread::for_each_runnable([](Thread& thread) -> IterationDecision { + Scheduler::for_each_runnable([](Thread& thread) -> IterationDecision { auto& process = thread.process(); dbgprintf("[K%x] %-12s %s(%u:%u) @ %w:%x\n", &process, thread.state_string(), process.name().characters(), process.pid(), thread.tid(), thread.tss().cs, thread.tss().eip); return IterationDecision::Continue;