Lines Matching refs:kthread_t
105 void disp_swapped_enq(kthread_t *tp);
106 static void disp_swapped_setrun(kthread_t *tp);
118 static void setkpdq(kthread_t *tp, int borf);
156 #define T_DONTSTEAL (kthread_t *)(-1) /* returned by disp_getwork/getbest */
158 static kthread_t *disp_getwork(cpu_t *to);
159 static kthread_t *disp_getbest(disp_t *from);
160 static kthread_t *disp_ratify(kthread_t *tp, disp_t *kpq);
162 void swtch_to(kthread_t *);
605 kthread_t *t; /* taken thread */ in idle()
682 kthread_t *t = curthread; in preempt()
716 extern kthread_t *thread_unpin();
722 static kthread_t *
727 kthread_t *tp; in disp()
801 DTRACE_SCHED2(dequeue, kthread_t *, tp, disp_t *, dp); in disp()
871 kthread_t *t = curthread; in swtch()
872 kthread_t *next; in swtch()
987 kthread_t *next; in swtch_from_zombie()
1023 search_disp_queues(disp_t *dp, kthread_t *tp) in search_disp_queues()
1031 kthread_t *rp; in search_disp_queues()
1052 thread_on_queue(kthread_t *tp) in thread_on_queue()
1091 swtch_to(kthread_t *next) in swtch_to()
1199 setbackdq(kthread_t *tp) in setbackdq()
1282 kthread_t *, tp, in setbackdq()
1326 DTRACE_SCHED3(enqueue, kthread_t *, tp, disp_t *, dp, int, 0); in setbackdq()
1384 setfrontdq(kthread_t *tp) in setfrontdq()
1478 DTRACE_SCHED3(enqueue, kthread_t *, tp, disp_t *, dp, int, 1); in setfrontdq()
1530 setkpdq(kthread_t *tp, int borf) in setkpdq()
1545 DTRACE_SCHED3(enqueue, kthread_t *, tp, disp_t *, dp, int, borf); in setkpdq()
1604 dispdeq(kthread_t *tp) in dispdeq()
1608 kthread_t *rp; in dispdeq()
1609 kthread_t *trp; in dispdeq()
1610 kthread_t **ptp; in dispdeq()
1649 DTRACE_SCHED2(dequeue, kthread_t *, tp, disp_t *, dp); in dispdeq()
1696 dq_sruninc(kthread_t *t) in dq_sruninc()
1710 dq_srundec(kthread_t *t) in dq_srundec()
1725 disp_swapped_enq(kthread_t *tp) in disp_swapped_enq()
1757 disp_swapped_setrun(kthread_t *tp) in disp_swapped_setrun()
1794 cpu_surrender(kthread_t *tp) in cpu_surrender()
1828 DTRACE_SCHED1(surrender, kthread_t *, tp); in cpu_surrender()
1849 static kthread_t *
1850 disp_ratify(kthread_t *tp, disp_t *kpq) in disp_ratify()
1894 static kthread_t *
1900 kthread_t *tp; in disp_getwork()
1901 kthread_t *retval = NULL; in disp_getwork()
2082 kthread_t *tp; in disp_fix_unbound_pri()
2146 disp_adjust_unbound_pri(kthread_t *tp) in disp_adjust_unbound_pri()
2180 static kthread_t *
2183 kthread_t *tp; in disp_getbest()
2293 DTRACE_PROBE4(nosteal, kthread_t *, tp, in disp_getbest()
2388 DTRACE_PROBE3(steal, kthread_t *, tp, cpu_t *, tcp, cpu_t *, cp); in disp_getbest()
2411 kthread_t *tp; in disp_bound_common()
2503 kthread_t *tp; in disp_cpu_inactive()
2567 cpu_score(cpu_t *cp, kthread_t *tp) in cpu_score()
2608 disp_lowpri_cpu(cpu_t *hint, kthread_t *tp, pri_t tpri) in disp_lowpri_cpu()
2703 kthread_t *t = curthread; in disp_choose_best_cpu()