mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 20:15:07 +00:00
Kernel: Remove system.h and make the uptime global a qword.
This commit is contained in:
parent
c09c114d77
commit
29d0412a06
8 changed files with 13 additions and 27 deletions
|
@ -1,6 +1,5 @@
|
|||
#include <Kernel/Thread.h>
|
||||
#include <Kernel/Scheduler.h>
|
||||
#include <Kernel/system.h>
|
||||
#include <Kernel/Process.h>
|
||||
#include <Kernel/VM/MemoryManager.h>
|
||||
#include <LibC/signal_numbers.h>
|
||||
|
@ -125,7 +124,7 @@ void Thread::block(Thread::State new_state)
|
|||
void Thread::sleep(dword ticks)
|
||||
{
|
||||
ASSERT(state() == Thread::Running);
|
||||
current->set_wakeup_time(system.uptime + ticks);
|
||||
current->set_wakeup_time(g_uptime + ticks);
|
||||
current->block(Thread::BlockedSleep);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue