In sched_toidle() only call the TRACEPOINT if curproc is set.
authorclaudio <claudio@openbsd.org>
Tue, 9 Jul 2024 08:44:36 +0000 (08:44 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 9 Jul 2024 08:44:36 +0000 (08:44 +0000)
commit9c699cfdb87a0d09a7d84c354a6943c8c8878431
treeeae2497001790c61a5e56fd85d389da73c2388e8
parenteae7884e493372992ba2507511ace3b871d55519
In sched_toidle() only call the TRACEPOINT if curproc is set.
sched_toidle() is called by cpu_hatch() to start APs and then curproc
may be NULL.
OK mpi@
sys/kern/kern_sched.c