From 569d6d47fe3232c823cfbb7a24938fe309e2ab11 Mon Sep 17 00:00:00 2001 From: thatdutchguy <209150+thatdutchguy@users.noreply.github.com> Date: Tue, 16 Mar 2021 13:22:56 -0700 Subject: [PATCH] Kernel: sysconf(_SC_CLK_TCK): Use TimeManagement::ticks_per_second() --- Kernel/Syscalls/sysconf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/Syscalls/sysconf.cpp b/Kernel/Syscalls/sysconf.cpp index c6ae283190..21eb725247 100644 --- a/Kernel/Syscalls/sysconf.cpp +++ b/Kernel/Syscalls/sysconf.cpp @@ -26,6 +26,7 @@ #include #include +#include #include namespace Kernel { @@ -45,8 +46,7 @@ KResultOr Process::sys$sysconf(int name) case _SC_GETPW_R_SIZE_MAX: return 4096; // idk case _SC_CLK_TCK: - // FIXME: should return Number of clock intervals per second for times() - return 100; // seems to be 100 on x86_64 + return TimeManagement::the().ticks_per_second(); default: return EINVAL; }