summaryrefslogtreecommitdiff
path: root/Kernel/API/TimePage.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-10 21:08:48 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-10 21:51:05 +0200
commitaaead6f332f0fdeb453105f061741e1ad3ba576b (patch)
tree4ea70a18ac4aa4fb3d49012c21e60db3e80fdffd /Kernel/API/TimePage.h
parentafa225f55c76a5256e8235b36165d4a35de2834d (diff)
downloadserenity-aaead6f332f0fdeb453105f061741e1ad3ba576b.zip
Kernel: Only expose CLOCK_REALTIME_COARSE via the kernel time page
Non-COARSE clock sources may probably still require a syscall.
Diffstat (limited to 'Kernel/API/TimePage.h')
-rw-r--r--Kernel/API/TimePage.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/API/TimePage.h b/Kernel/API/TimePage.h
index a72c262258..e1492cd21f 100644
--- a/Kernel/API/TimePage.h
+++ b/Kernel/API/TimePage.h
@@ -18,7 +18,7 @@ namespace Kernel {
inline bool time_page_supports(clockid_t clock_id)
{
- return clock_id == CLOCK_REALTIME;
+ return clock_id == CLOCK_REALTIME_COARSE;
}
struct TimePage {