diff options
Diffstat (limited to 'sys/kern/kern_idle.c')
-rw-r--r-- | sys/kern/kern_idle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_idle.c b/sys/kern/kern_idle.c index f8ef0dd..7d0925e 100644 --- a/sys/kern/kern_idle.c +++ b/sys/kern/kern_idle.c @@ -73,13 +73,13 @@ idle_setup(void *dummy) PROC_LOCK(p); p->p_flag |= P_NOLOAD; - mtx_lock_spin(&sched_lock); td = FIRST_THREAD_IN_PROC(p); + thread_lock(td); TD_SET_CAN_RUN(td); td->td_flags |= TDF_IDLETD; sched_class(td, PRI_IDLE); sched_prio(td, PRI_MAX_IDLE); - mtx_unlock_spin(&sched_lock); + thread_unlock(td); PROC_UNLOCK(p); #ifdef SMP } |