aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_idle.c
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>2002-09-11 08:13:56 +0000
committerJulian Elischer <julian@FreeBSD.org>2002-09-11 08:13:56 +0000
commit71fad9fdeefd5d874768802125f98ea6450cfa5c (patch)
tree10514ece7d621a24c034e4c778c793b9ea2d9675 /sys/kern/kern_idle.c
parent527eee2d404ad5415be0b17e0403d29f3ea924c3 (diff)
downloadsrc-71fad9fdeefd5d874768802125f98ea6450cfa5c.tar.gz
src-71fad9fdeefd5d874768802125f98ea6450cfa5c.zip
Notes
Diffstat (limited to 'sys/kern/kern_idle.c')
-rw-r--r--sys/kern/kern_idle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_idle.c b/sys/kern/kern_idle.c
index 49aacf87e05d..b0f4fda0addc 100644
--- a/sys/kern/kern_idle.c
+++ b/sys/kern/kern_idle.c
@@ -63,7 +63,7 @@ idle_setup(void *dummy)
p->p_flag |= P_NOLOAD;
p->p_state = PRS_NORMAL;
td = FIRST_THREAD_IN_PROC(p);
- td->td_state = TDS_UNQUEUED;
+ td->td_state = TDS_CAN_RUN;
td->td_kse->ke_flags |= KEF_IDLEKSE;
#ifdef SMP
}
@@ -112,7 +112,7 @@ idle_proc(void *dummy)
mtx_lock_spin(&sched_lock);
p->p_stats->p_ru.ru_nvcsw++;
- td->td_state = TDS_UNQUEUED;
+ td->td_state = TDS_CAN_RUN;
mi_switch();
mtx_unlock_spin(&sched_lock);
}