summaryrefslogtreecommitdiff
path: root/Kernel/i8253.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-11-07 22:15:02 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-11-07 22:15:02 +0100
commit39d2fcbbee39b1cb65a801a45fdedf4e3f6ff2ad (patch)
tree75893f04e0335277a7c052e0ac1b14700bef6571 /Kernel/i8253.cpp
parent6304c771dd685549bfcd6fe78f29d77876df8a6c (diff)
downloadserenity-39d2fcbbee39b1cb65a801a45fdedf4e3f6ff2ad.zip
Move the scheduler code to its own class.
This is very mechanical.
Diffstat (limited to 'Kernel/i8253.cpp')
-rw-r--r--Kernel/i8253.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Kernel/i8253.cpp b/Kernel/i8253.cpp
index e1b1f60860..5efbda30a9 100644
--- a/Kernel/i8253.cpp
+++ b/Kernel/i8253.cpp
@@ -5,6 +5,7 @@
#include "Process.h"
#include "system.h"
#include "PIC.h"
+#include "Scheduler.h"
#define IRQ_TIMER 0
@@ -103,9 +104,9 @@ void clock_handle()
current->tss().esp = regs.esp_if_crossRing;
}
- if (!scheduleNewProcess())
+ if (!Scheduler::pick_next())
return;
- Process::prepare_for_iret_to_new_process();
+ Scheduler::prepare_for_iret_to_new_process();
// Set the NT (nested task) flag.
asm(