Lines Matching refs:newl
551 lwp_t *newl; in nextlwp() local
562 newl = sched_nextlwp(); in nextlwp()
563 if (newl != NULL) { in nextlwp()
564 sched_dequeue(newl); in nextlwp()
565 KASSERT(lwp_locked(newl, spc->spc_mutex)); in nextlwp()
566 KASSERT(newl->l_cpu == ci); in nextlwp()
567 newl->l_stat = LSONPROC; in nextlwp()
568 newl->l_pflag |= LP_RUNNING; in nextlwp()
569 newl->l_boostpri = PRI_NONE; in nextlwp()
570 spc->spc_curpriority = lwp_eprio(newl); in nextlwp()
572 lwp_setlock(newl, spc->spc_lwplock); in nextlwp()
578 newl = ci->ci_data.cpu_idlelwp; in nextlwp()
579 newl->l_pflag |= LP_RUNNING; in nextlwp()
595 return newl; in nextlwp()
612 struct lwp *newl; in mi_switch() local
633 newl = NULL; in mi_switch()
649 newl = l->l_switchto; in mi_switch()
655 newl = softint_picklwp(); in mi_switch()
656 newl->l_stat = LSONPROC; in mi_switch()
657 newl->l_pflag |= LP_RUNNING; in mi_switch()
664 if (l->l_stat == LSONPROC && l != newl) { in mi_switch()
684 if (newl == NULL) { in mi_switch()
685 newl = nextlwp(ci, spc); in mi_switch()
696 newl->l_stime = bt; in mi_switch()
705 ci->ci_onproc = newl; in mi_switch()
727 if (l != newl) { in mi_switch()
798 (*dtrace_vtime_switch_func)(newl); in mi_switch()
811 prevlwp = cpu_switchto(l, newl, returning); in mi_switch()