mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 09:07:35 +00:00
Kernel: sysconf(_SC_CLK_TCK): Use TimeManagement::ticks_per_second()
This commit is contained in:
parent
10e3e8f6d4
commit
569d6d47fe
1 changed files with 2 additions and 2 deletions
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
#include <Kernel/Arch/i386/CPU.h>
|
#include <Kernel/Arch/i386/CPU.h>
|
||||||
#include <Kernel/Process.h>
|
#include <Kernel/Process.h>
|
||||||
|
#include <Kernel/Time/TimeManagement.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel {
|
||||||
|
@ -45,8 +46,7 @@ KResultOr<long> Process::sys$sysconf(int name)
|
||||||
case _SC_GETPW_R_SIZE_MAX:
|
case _SC_GETPW_R_SIZE_MAX:
|
||||||
return 4096; // idk
|
return 4096; // idk
|
||||||
case _SC_CLK_TCK:
|
case _SC_CLK_TCK:
|
||||||
// FIXME: should return Number of clock intervals per second for times()
|
return TimeManagement::the().ticks_per_second();
|
||||||
return 100; // seems to be 100 on x86_64
|
|
||||||
default:
|
default:
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue