syscalls: remove start_time from sys_nanosleep

This commit is contained in:
2025-09-03 16:49:52 +03:00
parent 63938e1acd
commit 4c26652ee2
-1
View File
@@ -313,7 +313,6 @@ uint32_t sys_nanosleep(TrapFrame *tf)
timespec* duration = (timespec*)tf->ebx;
size_t ms = duration->tv_sec * 1000 + duration->tv_nsec / 1000000;
//debug_log("waiting for 0x%X ms\n", ms);
size_t start_time = timer_ticks;
scheduler_lock();
current->wake_up_time = timer_ticks + ms;