浏览代码

Scheduler: Fix bitrotted SCHEDULER_RUNNABLE_DEBUG code

The runnable lists have moved from Thread to Scheduler.
Andreas Kling 6 年之前
父节点
当前提交
55d6efd485
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Kernel/Scheduler.cpp

+ 2 - 2
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;