Date: Sat, 20 Jan 2001 15:03:20 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern tty.c Message-ID: <200101202303.f0KN3L647845@freefall.freebsd.org>
index | next in thread | raw e-mail
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
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101202303.f0KN3L647845>
