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