diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-16 11:18:04 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-16 11:33:59 +0200 |
commit | 3a92d0828de6ffc040c6006a01a8710dd8a28bf7 (patch) | |
tree | fc51e85462b3c30eacdcecbd182b09afa6381b58 /Kernel/Scheduler.cpp | |
parent | 4e27c58be70d9ddb26c00f62ca982cf398ae70ba (diff) | |
download | serenity-3a92d0828de6ffc040c6006a01a8710dd8a28bf7.zip |
Kernel: Remove the "kernel info page" used for fast gettimeofday()
We stopped using gettimeofday() in Core::EventLoop a while back,
in favor of clock_gettime() for monotonic time.
Maintaining an optimization for a syscall we're not using doesn't make
a lot of sense, so let's go back to the old-style sys$gettimeofday().
Diffstat (limited to 'Kernel/Scheduler.cpp')
-rw-r--r-- | Kernel/Scheduler.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Kernel/Scheduler.cpp b/Kernel/Scheduler.cpp index 6563effc3f..1523caf0dc 100644 --- a/Kernel/Scheduler.cpp +++ b/Kernel/Scheduler.cpp @@ -42,6 +42,7 @@ namespace Kernel { SchedulerData* g_scheduler_data; +timeval g_timeofday; void Scheduler::init_thread(Thread& thread) { @@ -596,10 +597,8 @@ void Scheduler::timer_tick(const RegisterState& regs) ++g_uptime; - timeval tv; - tv.tv_sec = TimeManagement::the().epoch_time(); - tv.tv_usec = TimeManagement::the().ticks_this_second() * 1000; - Process::update_info_page_timestamp(tv); + g_timeofday.tv_sec = TimeManagement::the().epoch_time(); + g_timeofday.tv_usec = TimeManagement::the().ticks_this_second() * 1000; if (Process::current->is_profiling()) { SmapDisabler disabler; |