diff options
-rw-r--r-- | Kernel/API/TimePage.h | 2 | ||||
-rw-r--r-- | Kernel/Time/TimeManagement.cpp | 2 |
2 files changed, 2 insertions, 2 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 { diff --git a/Kernel/Time/TimeManagement.cpp b/Kernel/Time/TimeManagement.cpp index 73d3739662..9c43604965 100644 --- a/Kernel/Time/TimeManagement.cpp +++ b/Kernel/Time/TimeManagement.cpp @@ -431,7 +431,7 @@ void TimeManagement::update_time_page() { auto* page = time_page(); u32 update_iteration = AK::atomic_fetch_add(&page->update2, 1u, AK::MemoryOrder::memory_order_acquire); - page->clocks[CLOCK_REALTIME] = m_epoch_time; + page->clocks[CLOCK_REALTIME_COARSE] = m_epoch_time; AK::atomic_store(&page->update1, update_iteration + 1u, AK::MemoryOrder::memory_order_release); } |