Kernel: Remove ancient nprocess and nblocked globals.

These were not in sync with reality, and not used anywhere anyway.
This commit is contained in:
Andreas Kling 2019-04-03 13:05:20 +02:00
parent ac46e45f6e
commit a095a90b51
Notes: sideshowbarker 2024-07-19 14:50:36 +09:00
3 changed files with 0 additions and 15 deletions

View file

@ -94,12 +94,10 @@ Thread::~Thread()
void Thread::unblock()
{
if (current == this) {
system.nblocked--;
m_state = Thread::Running;
return;
}
ASSERT(m_state != Thread::Runnable && m_state != Thread::Running);
system.nblocked--;
m_state = Thread::Runnable;
}
@ -117,7 +115,6 @@ void Thread::block(Thread::State new_state)
kprintf("Thread::block: %s(%u) block(%u/%s) with state=%u/%s\n", process().name().characters(), process().pid(), new_state, to_string(new_state), state(), to_string(state()));
}
ASSERT(state() == Thread::Running);
system.nblocked++;
m_was_interrupted_while_blocked = false;
set_state(new_state);
Scheduler::yield();