syscalls: remove start_time from sys_nanosleep
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user