]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sched: split sched_ap_entry() out of sched_throw()
authorKyle Evans <kevans@FreeBSD.org>
Thu, 4 Nov 2021 00:09:56 +0000 (19:09 -0500)
committerKyle Evans <kevans@FreeBSD.org>
Fri, 5 Nov 2021 20:45:51 +0000 (15:45 -0500)
commit6a8ea6d17498f07c702e2acf4072cf4436037a6a
tree68d71d143712a769e54e9da3cb638f8c581046bd
parent15d4459cb2d3d2fa8f3831fa5cc99d133cbae48d
sched: split sched_ap_entry() out of sched_throw()

sched_throw() can no longer take a NULL thread, APs enter through
sched_ap_entry() instead.  This completely removes branching in the
common case and cleans up both paths.  No functional change intended.

Reviewed by: kib, markj
Differential Revision: https://reviews.freebsd.org/D32829
sys/arm/arm/mp_machdep.c
sys/arm64/arm64/mp_machdep.c
sys/kern/sched_4bsd.c
sys/kern/sched_ule.c
sys/mips/mips/mp_machdep.c
sys/powerpc/powerpc/mp_machdep.c
sys/riscv/riscv/mp_machdep.c
sys/sys/sched.h
sys/x86/x86/mp_x86.c