Make sure the process state for the idle proc is set correctly
from the beginning.
This commit is contained in:
parent
4b4cc4c60b
commit
cad4143a58
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user