Lines Matching refs:CPU
222 CPU->cpu_disp->disp_maxrunpri = -1; in dispinit()
223 CPU->cpu_disp->disp_max_unbound_pri = -1; in dispinit()
526 cpu_t *cp = CPU; in disp_anywork()
575 cpu_t *cp = CPU; in idle_enter()
588 cpu_t *cp = CPU; in idle_exit()
600 struct cpu *cp = CPU; /* pointer to this CPU */ in idle()
688 if (t->t_state != TS_ONPROC || t->t_disp_queue != CPU->cpu_disp) { in preempt()
694 CPU->cpu_kprunrun = 0; in preempt()
700 CPU_STATS_ADDQ(CPU, sys, inv_swtch, 1); in preempt()
731 cpup = CPU; in disp()
882 cp = CPU; /* now protected against migration */ in swtch()
892 t->t_disp_queue->disp_cpu == CPU && in swtch()
896 t->t_disp_queue->disp_cpu != CPU || in swtch()
901 cp = CPU; in swtch()
984 cpu_t *cpu = CPU; in swtch_from_zombie()
991 ASSERT(CPU_ON_INTR(CPU) == 0); /* not called with PIL > 10 */ in swtch_from_zombie()
992 CPU_STATS_ADDQ(CPU, sys, pswitch, 1); in swtch_from_zombie()
1058 cp = CPU; in thread_on_queue()
1062 } while ((cp = cp->cpu_next_onln) != CPU); in thread_on_queue()
1067 part = CPU->cpu_part; in thread_on_queue()
1071 } while ((part = part->cp_next) != CPU->cpu_part); in thread_on_queue()
1089 cpu_t *cp = CPU; in swtch_to()
1148 if (tpri < kpreemptpri && cp != CPU) in cpu_resched()
1153 if (cp != CPU) in cpu_resched()
1362 if (self && dp->disp_max_unbound_pri == -1 && cp == CPU) { in setbackdq()
1522 cp == CPU) { in setfrontdq()
1856 if (cpup != CPU) in cpu_surrender()
1878 cpup = CPU; in disp_ratify()
2214 cp = CPU; in disp_getbest()