MCPcopy Create free account
hub / github.com/F-Stack/f-stack / schedinit

Function schedinit

freebsd/kern/sched_4bsd.c:669–679  ·  view source on GitHub ↗

* 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() */

Source from the content-addressed store, hash-verified

667 * proc0_init()
668 */
669void
670schedinit(void)
671{
672
673 /*
674 * Set up the scheduler specific parts of thread0.
675 */
676 thread0.td_lock = &sched_lock;
677 td_get_sched(&thread0)->ts_slice = sched_slice;
678 mtx_init(&sched_lock, "sched lock", NULL, MTX_SPIN);
679}
680
681int
682sched_runnable(void)

Callers

nothing calls this directly

Calls 2

td_get_schedFunction · 0.85
mtx_initFunction · 0.85

Tested by

no test coverage detected