Kernel: Remove unnecessary timer check from Scheduler

This commit is contained in:
Bananymous 2023-08-04 10:24:29 +03:00
parent 6feb8a99d2
commit 07ee898f4f
2 changed files with 0 additions and 6 deletions

View File

@ -73,8 +73,6 @@ namespace Kernel
BAN::LinkedList<ActiveThread>::iterator m_current_thread;
uint64_t m_last_reschedule = 0;
friend class Process;
};

View File

@ -71,10 +71,6 @@ namespace Kernel
ASSERT(InterruptController::get().is_in_service(PIT_IRQ));
InterruptController::get().eoi(PIT_IRQ);
if (PIT::ms_since_boot() <= m_last_reschedule)
return;
m_last_reschedule = PIT::ms_since_boot();
wake_threads();
if (save_current_thread())