From owner-cvs-all Sat Jan 20 15: 3:44 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 0C8D537B404; Sat, 20 Jan 2001 15:03:21 -0800 (PST) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0KN3L647845; Sat, 20 Jan 2001 15:03:21 -0800 (PST) (envelope-from jhb) Message-Id: <200101202303.f0KN3L647845@freefall.freebsd.org> From: John Baldwin Date: Sat, 20 Jan 2001 15:03:20 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern tty.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG jhb 2001/01/20 15:03:20 PST Modified files: sys/kern tty.c Log: - All of proc_compare needs sched_lock, so hold it for the for loop that calls it rather than obtaining and releasing it a lot in proc_compare. - Collect all of the data gathering and stick it just after the proc_compare loop. This way, we only have to grab sched_lock once now when handling SIGINFO. All the printf's are done after the values are calculated. Submitted mostly by: bde Revision Changes Path 1.144 +21 -41 src/sys/kern/tty.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message