Lines Matching refs:CPU
226 CPU->cpu_disp->disp_maxrunpri = -1; in dispinit()
227 CPU->cpu_disp->disp_max_unbound_pri = -1; in dispinit()
530 cpu_t *cp = CPU; in disp_anywork()
579 cpu_t *cp = CPU; in idle_enter()
592 cpu_t *cp = CPU; in idle_exit()
604 struct cpu *cp = CPU; /* pointer to this CPU */ in idle()
692 if (t->t_state != TS_ONPROC || t->t_disp_queue != CPU->cpu_disp) { in preempt()
698 CPU->cpu_kprunrun = 0; in preempt()
704 CPU_STATS_ADDQ(CPU, sys, inv_swtch, 1); in preempt()
735 cpup = CPU; in disp()
886 cp = CPU; /* now protected against migration */ in swtch()
896 t->t_disp_queue->disp_cpu == CPU && in swtch()
900 t->t_disp_queue->disp_cpu != CPU || in swtch()
905 cp = CPU; in swtch()
988 cpu_t *cpu = CPU; in swtch_from_zombie()
995 ASSERT(CPU_ON_INTR(CPU) == 0); /* not called with PIL > 10 */ in swtch_from_zombie()
996 CPU_STATS_ADDQ(CPU, sys, pswitch, 1); in swtch_from_zombie()
1062 cp = CPU; in thread_on_queue()
1066 } while ((cp = cp->cpu_next_onln) != CPU); in thread_on_queue()
1071 part = CPU->cpu_part; in thread_on_queue()
1075 } while ((part = part->cp_next) != CPU->cpu_part); in thread_on_queue()
1093 cpu_t *cp = CPU; in swtch_to()
1150 if (tpri < kpreemptpri && cp != CPU) in cpu_resched()
1155 if (cp != CPU) in cpu_resched()
1359 if (self && dp->disp_max_unbound_pri == -1 && cp == CPU) { in setbackdq()
1510 cp == CPU) { in setfrontdq()
1838 if (cpup != CPU) in cpu_surrender()
1860 cpup = CPU; in disp_ratify()
2196 cp = CPU; in disp_getbest()
2704 cpu_t *curcpu = CPU; in disp_choose_best_cpu()