Make sure the process state for the idle proc is set correctly

from the beginning.
This commit is contained in:
Julian Elischer 2002-07-17 19:18:45 +00:00
parent 4b4cc4c60b
commit cad4143a58

View File

@ -61,6 +61,7 @@ idle_setup(void *dummy)
panic("idle_setup: kthread_create error %d\n", error);
p->p_flag |= P_NOLOAD;
p->p_state = PRS_NORMAL;
td = FIRST_THREAD_IN_PROC(p);
td->td_state = TDS_UNQUEUED;
td->td_kse->ke_flags |= KEF_IDLEKSE;