FreeBSD/sys/kern/sched_4bsd.c
/*
 * Very early in the boot some setup of scheduler-specific
 * parts of proc0 and of some scheduler resources needs to be done.
 * Called from:
 *  proc0_init()
 */
Very early in the boot some setup of scheduler-specific
parts of proc0 and of some scheduler resources needs to be done.
Very early in the boot some setup of scheduler - specific parts of proc0 and of some scheduler resources needs to be done .
void
schedinit(void)
{
	thread0.td_lock = &sched_lock;
	td_get_sched(&thread0)->ts_slice = sched_slice;
	mtx_init(&sched_lock, "sched lock", NULL, MTX_SPIN | MTX_RECURSE);
}
void schedinit ( void ) { thread0 . td_lock = & sched_lock ; td_get_sched ( & thread0 ) -> ts_slice = sched_slice ; mtx_init ( & sched_lock , " " , NULL , MTX_SPIN | MTX_RECURSE ) ; }
Very early in the boot some setup of scheduler-specific
 parts of proc0 and of some scheduler resources needs to be done.
Very early in the boot some setup of scheduler - specific parts of proc0 and of some scheduler resources needs to be done .
/*
	 * Set up the scheduler specific parts of thread0.
	 */