From 9d8b3ba25404fb5f343a061caeae56914b3ce02a Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Sat, 6 Jul 2024 18:21:07 +0200 Subject: Kernel: Fix sleep function to use uptime instead of UTC time --- kernel/cpu/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel/cpu') diff --git a/kernel/cpu/syscall.c b/kernel/cpu/syscall.c index 7653c6a..9c3dde0 100644 --- a/kernel/cpu/syscall.c +++ b/kernel/cpu/syscall.c @@ -227,7 +227,7 @@ void *syscall_mmap(SYS_MMAP_PARAMS *args) { void syscall_msleep(u32 ms) { struct timespec t; timer_get(&t); - current_task->sleep_until = timer_get_ms() + ms; + current_task->sleep_until = timer_get_uptime() + ms; switch_task(); } -- cgit v1.2.3