* 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() */
| 667 | * proc0_init() |
| 668 | */ |
| 669 | void |
| 670 | schedinit(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 | |
| 681 | int |
| 682 | sched_runnable(void) |
nothing calls this directly
no test coverage detected