From 895e874eb482daa14f4cd75afbb1fca6021fd09d Mon Sep 17 00:00:00 2001 From: Liav A Date: Sat, 22 Feb 2020 20:16:45 +0200 Subject: Kernel: Include the new PIT class in system components --- Kernel/Devices/PCSpeaker.cpp | 2 +- Kernel/Process.cpp | 2 +- Kernel/Scheduler.cpp | 6 +++--- Kernel/TimerQueue.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'Kernel') diff --git a/Kernel/Devices/PCSpeaker.cpp b/Kernel/Devices/PCSpeaker.cpp index c76bd9f3c0..05a8e0ad82 100644 --- a/Kernel/Devices/PCSpeaker.cpp +++ b/Kernel/Devices/PCSpeaker.cpp @@ -25,8 +25,8 @@ */ #include -#include #include +#include #include void PCSpeaker::tone_on(int frequency) diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 9efd031561..f862a580c2 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -32,11 +32,11 @@ #include #include #include -#include #include #include #include #include +#include #include #include #include diff --git a/Kernel/Scheduler.cpp b/Kernel/Scheduler.cpp index 1cad872a8d..e8b67b1d59 100644 --- a/Kernel/Scheduler.cpp +++ b/Kernel/Scheduler.cpp @@ -26,7 +26,7 @@ #include #include -#include +#include #include #include #include @@ -594,8 +594,8 @@ void Scheduler::timer_tick(RegisterState& regs) ++g_uptime; timeval tv; - tv.tv_sec = RTC::boot_time() + PIT::seconds_since_boot(); - tv.tv_usec = PIT::ticks_this_second() * 1000; + tv.tv_sec = RTC::boot_time() + PIT::the().seconds_since_boot(); + tv.tv_usec = PIT::the().ticks_this_second() * 1000; Process::update_info_page_timestamp(tv); if (Process::current->is_profiling()) { diff --git a/Kernel/TimerQueue.h b/Kernel/TimerQueue.h index b21a9081a2..511e6e3bfc 100644 --- a/Kernel/TimerQueue.h +++ b/Kernel/TimerQueue.h @@ -30,7 +30,7 @@ #include #include #include -#include +#include namespace Kernel { -- cgit v1.2.3