Lines Matching refs:CPU
222 CPU->cpu_disp->disp_maxrunpri = -1; in dispinit()
223 CPU->cpu_disp->disp_max_unbound_pri = -1; in dispinit()
510 cpu_t *cp = CPU; in disp_anywork()
559 cpu_t *cp = CPU; in idle_enter()
572 cpu_t *cp = CPU; in idle_exit()
584 struct cpu *cp = CPU; /* pointer to this CPU */ in idle()
672 if (t->t_state != TS_ONPROC || t->t_disp_queue != CPU->cpu_disp) { in preempt()
678 CPU->cpu_kprunrun = 0; in preempt()
684 CPU_STATS_ADDQ(CPU, sys, inv_swtch, 1); in preempt()
715 cpup = CPU; in disp()
866 cp = CPU; /* now protected against migration */ in swtch()
876 t->t_disp_queue->disp_cpu == CPU && in swtch()
880 t->t_disp_queue->disp_cpu != CPU || in swtch()
885 cp = CPU; in swtch()
968 cpu_t *cpu = CPU; in swtch_from_zombie()
975 ASSERT(CPU_ON_INTR(CPU) == 0); /* not called with PIL > 10 */ in swtch_from_zombie()
976 CPU_STATS_ADDQ(CPU, sys, pswitch, 1); in swtch_from_zombie()
1042 cp = CPU; in thread_on_queue()
1046 } while ((cp = cp->cpu_next_onln) != CPU); in thread_on_queue()
1051 part = CPU->cpu_part; in thread_on_queue()
1055 } while ((part = part->cp_next) != CPU->cpu_part); in thread_on_queue()
1073 cpu_t *cp = CPU; in swtch_to()
1132 if (tpri < kpreemptpri && cp != CPU) in cpu_resched()
1137 if (cp != CPU) in cpu_resched()
1346 if (self && dp->disp_max_unbound_pri == -1 && cp == CPU) { in setbackdq()
1506 cp == CPU) { in setfrontdq()
1840 if (cpup != CPU) in cpu_surrender()
1862 cpup = CPU; in disp_ratify()
2198 cp = CPU; in disp_getbest()