From owner-cvs-all Tue Jul 3 1: 1: 1 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id F01D637B403; Tue, 3 Jul 2001 01:00:57 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f6380vq57679; Tue, 3 Jul 2001 01:00:57 -0700 (PDT) (envelope-from jhb) Message-Id: <200107030800.f6380vq57679@freefall.freebsd.org> From: John Baldwin Date: Tue, 3 Jul 2001 01:00:57 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_synch.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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