Lines Matching refs:td
58 struct thread *td;
66 error = kproc_kthread_add(sched_idletd, NULL, &p, &td,
68 pc->pc_idlethread = td;
70 error = kproc_kthread_add(sched_idletd, NULL, &p, &td,
72 PCPU_SET(idlethread, td);
77 thread_lock(td);
78 TD_SET_CAN_RUN(td);
79 td->td_flags |= TDF_IDLETD | TDF_NOLOAD;
80 sched_class(td, PRI_IDLE);
81 sched_prio(td, PRI_MAX_IDLE);
82 thread_unlock(td);