sched_throw() can no longer take a NULL thread, APs enter through
sched_ap_entry() instead. This completely removes branching in the
common case. No functional change intended.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/kern/sched_4bsd.c | ||
---|---|---|
1708 | I would group this MPASS together with td != NULL |
sys/kern/sched_ule.c | ||
---|---|---|
2987 | Sure, how about (with wrapping fixed): /* * sched_throw_grab() chooses a thread from the queue to switch to * next. It returns with the tdq lock dropped in a spinlock section to * keep interrupts disabled until the CPU is running in a proper threaded * context. */ |
sys/kern/sched_ule.c | ||
---|---|---|
2987 | Seems ok to me. |