diff options
author | julian <julian@FreeBSD.org> | 2002-07-17 19:18:45 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2002-07-17 19:18:45 +0000 |
commit | 355fc609ace6235c97f723f3efeb3c05f5168b2e (patch) | |
tree | d66d5315629f7805119a7db4443c2ad2573ee374 /sys/kern/kern_idle.c | |
parent | ab8d11d3a98e2c61ad075acff7ec3742a551f736 (diff) | |
download | FreeBSD-src-355fc609ace6235c97f723f3efeb3c05f5168b2e.zip FreeBSD-src-355fc609ace6235c97f723f3efeb3c05f5168b2e.tar.gz |
Make sure the process state for the idle proc is set correctly
from the beginning.
Diffstat (limited to 'sys/kern/kern_idle.c')
-rw-r--r-- | sys/kern/kern_idle.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_idle.c b/sys/kern/kern_idle.c index 1c33d19..a7e8998 100644 --- a/sys/kern/kern_idle.c +++ b/sys/kern/kern_idle.c @@ -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; |