Date: Tue, 3 Jul 2001 01:00:57 -0700 (PDT) From: John Baldwin <jhb@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_synch.c Message-ID: <200107030800.f6380vq57679@freefall.freebsd.org>
index | next in thread | raw e-mail
jhb 2001/07/03 01:00:57 PDT
Modified files:
sys/kern kern_synch.c
Log:
Just check p_oncpu when determining if a process is executing or not.
We already did this in the SMP case, and it is now maintained in the UP
case as well, and makes the code slightly more readable. Note that
curproc is always executing, thus the p != curproc test does not need to
be performed if the p_oncpu check is made.
Revision Changes Path
1.145 +2 -5 src/sys/kern/kern_synch.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107030800.f6380vq57679>
