mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 10:09:14 +00:00
Kernel: Add CLOCK_MONOTONIC_COARSE to the kernel time page
This allows clock_gettime(CLOCK_MONOTONIC_COARSE) without syscalls. Core::EventLoop takes advantage of this automatically. :^)
This commit is contained in:
parent
aaead6f332
commit
b7dae4f90e
Notes:
sideshowbarker
2024-07-18 07:09:11 +09:00
Author: https://github.com/awesomekling
Commit: b7dae4f90e
2 changed files with 6 additions and 4 deletions
|
@ -18,7 +18,7 @@ namespace Kernel {
|
|||
|
||||
inline bool time_page_supports(clockid_t clock_id)
|
||||
{
|
||||
return clock_id == CLOCK_REALTIME_COARSE;
|
||||
return clock_id == CLOCK_REALTIME_COARSE || clock_id == CLOCK_MONOTONIC_COARSE;
|
||||
}
|
||||
|
||||
struct TimePage {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue