Lines Matching refs:newtd
2333 struct thread *newtd; in sched_switch() local
2417 newtd = choosethread(); in sched_switch()
2418 sched_pctcpu_update(td_get_sched(newtd), 0); in sched_switch()
2424 if (td != newtd) { in sched_switch()
2429 SDT_PROBE2(sched, , , off__cpu, newtd, newtd->td_proc); in sched_switch()
2438 (*dtrace_vtime_switch_func)(newtd); in sched_switch()
2443 HWT_CALL_HOOK(newtd, HWT_SWITCH_IN, NULL); in sched_switch()
2447 cpu_switch(td, newtd, mtx); in sched_switch()
3234 struct thread *newtd; in sched_throw_grab() local
3236 newtd = choosethread(); in sched_throw_grab()
3241 return (newtd); in sched_throw_grab()
3250 struct thread *newtd; in sched_ap_entry() local
3264 newtd = sched_throw_grab(tdq); in sched_ap_entry()
3267 HWT_CALL_HOOK(newtd, HWT_SWITCH_IN, NULL); in sched_ap_entry()
3271 cpu_throw(NULL, newtd); in sched_ap_entry()
3280 struct thread *newtd; in sched_throw() local
3294 newtd = sched_throw_grab(tdq); in sched_throw()
3297 HWT_CALL_HOOK(newtd, HWT_SWITCH_IN, NULL); in sched_throw()
3301 cpu_switch(td, newtd, TDQ_LOCKPTR(tdq)); in sched_throw()