[kernel] Remove process startup_bonus to timeslice

Previously we added startup_bonus to work around a segfault happening
when we preemted a newly created process instead of letting it give up
the CPU. Bug is not longer occuring, though that makes me nervous.
This commit is contained in:
2020-07-30 19:11:51 -07:00
parent 58bc5acb1e
commit 6a00057817
2 changed files with 1 additions and 4 deletions

View File

@@ -123,7 +123,7 @@ scheduler::create_process(page_table *pml4, bool user)
thread *th = p->create_thread(default_priority, user);
auto *tcb = th->tcb();
tcb->time_left = quantum(default_priority) + startup_bonus;
tcb->time_left = quantum(default_priority);
log::debug(logs::task, "Creating thread %llx, priority %d, time slice %d",
th->koid(), tcb->priority, tcb->time_left);