FreeBSD/sys/kern/sched_ule.c
/*
 * Record the sleep time for the interactivity scorer.
 */
Record the sleep time for the interactivity scorer.
Record the sleep time for the interactivity scorer .
void
sched_sleep(struct thread *td, int prio)
{
	THREAD_LOCK_ASSERT(td, MA_OWNED);
	td->td_slptick = ticks;
	if (TD_IS_SUSPENDED(td) || prio >= PSOCK)
		td->td_flags |= TDF_CANSWAP;
	if (PRI_BASE(td->td_pri_class) != PRI_TIMESHARE)
		return;
	if (static_boost == 1 && prio)
		sched_prio(td, prio);
	else if (static_boost && td->td_priority > static_boost)
		sched_prio(td, static_boost);
}
void sched_sleep ( struct thread * td , int prio ) { THREAD_LOCK_ASSERT ( td , MA_OWNED ) ; td -> td_slptick = ticks ; if ( TD_IS_SUSPENDED ( td ) || prio >= PSOCK ) td -> td_flags |= TDF_CANSWAP ; if ( PRI_BASE ( td -> td_pri_class ) != PRI_TIMESHARE ) return ; if ( static_boost == 1 && prio ) sched_prio ( td , prio ) ; else if ( static_boost && td -> td_priority > static_boost ) sched_prio ( td , static_boost ) ; }
Record the sleep time for the interactivity scorer.
Record the sleep time for the interactivity scorer .