NOCPU
if (k->ki_p->ki_stat == SRUN && k->ki_p->ki_oncpu != NOCPU) {
if (mtd.td_lastcpu == NOCPU)
if (mtd.td_oncpu == NOCPU)
vcpu->lastcpu = NOCPU;
vcpu->state.lastcpu = NOCPU;
vmxstate->lastcpu = NOCPU;
vcpu->hostcpu = NOCPU;
vcpu->hostcpu = NOCPU;
eq_table->eq[i].affinity_cpu_id = NOCPU;
KASSERT(vcpu->hostcpu == NOCPU, ("Invalid hostcpu %d for a "
vcpu->hostcpu = NOCPU;
KASSERT(hostcpu != NOCPU, ("vcpu running on invalid hostcpu"));
KASSERT(hostcpu == NOCPU, ("vcpu state %d not consistent "
if (ctx.iter->td_oncpu != NOCPU) {
if (cpu == NOCPU)
ie->ie_cpu = NOCPU;
if (cpu != NOCPU && CPU_ABSENT(cpu))
cpu = NOCPU;
if (cpu != NOCPU)
if (ie->ie_cpu == NOCPU)
if (td->td_lastcpu == NOCPU)
if (td->td_oncpu == NOCPU)
if ((cpuid != NOCPU) && (td != curthread))
td->td_lastcpu = td->td_oncpu = NOCPU;
td->td_oncpu = NOCPU;
(cpunum == NOCPU || me == cpunum))
if (cpunum != NOCPU) {
if (cpunum == NOCPU)
if (td->td_lastcpu != NOCPU && THREAD_CAN_SCHED(td, td->td_lastcpu))
best = NOCPU;
if (best == NOCPU)
KASSERT(best != NOCPU, ("no valid CPUs"));
cpu = NOCPU;
if (cpu != NOCPU)
td->td_oncpu = NOCPU;
SDT_PROBE2(sched, , , load__change, NOCPU, sched_tdcnt);
SDT_PROBE2(sched, , , load__change, NOCPU, sched_tdcnt);
childtd->td_oncpu = NOCPU;
childtd->td_lastcpu = NOCPU;
td->td_oncpu = NOCPU;
child->td_oncpu = NOCPU;
child->td_lastcpu = NOCPU;
td->td_oncpu = NOCPU;
if (cpu == NOCPU) {
if (id == NOCPU)
static volatile u_int stopping_cpu = NOCPU;
while (atomic_cmpset_int(&stopping_cpu, NOCPU,
while (stopping_cpu != NOCPU)
stopping_cpu = NOCPU;
if (owner->td_critnest == 0 || owner->td_oncpu == NOCPU)
MPASS(vp->v_dbatchcpu != NOCPU);
vp->v_dbatchcpu = NOCPU;
MPASS(vp->v_dbatchcpu != NOCPU);
vp->v_dbatchcpu = NOCPU;
if (vp->v_dbatchcpu != NOCPU) {
if (cpu == NOCPU)
vp->v_dbatchcpu = NOCPU;
MPASS(vp->v_dbatchcpu == NOCPU);
vp->v_dbatchcpu = NOCPU;
if (cpu == NOCPU)
vcpu->hostcpu = NOCPU;
if (mp_ncpus > 1 && cpu != NOCPU) {
if (isrc == NULL || isrc->is_event->ie_cpu != NOCPU)
if (cpuid == NOCPU) {
if (smpmode && pp->ki_oncpu != NOCPU)
if (state == SRUN && pp->ki_oncpu != NOCPU) {
%token NOCPU
NOCPU Save_id {