diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-11-07 22:15:02 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-11-07 22:15:02 +0100 |
commit | 39d2fcbbee39b1cb65a801a45fdedf4e3f6ff2ad (patch) | |
tree | 75893f04e0335277a7c052e0ac1b14700bef6571 /Kernel/i8253.cpp | |
parent | 6304c771dd685549bfcd6fe78f29d77876df8a6c (diff) | |
download | serenity-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.cpp | 5 |
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( |