Subject: CVS commit: [nathanw_sa] src/sys/kern
To: None <source-changes@netbsd.org>
From: Nathan J Williams <nathanw@netbsd.org>
List: source-changes
Date: 01/06/2003 19:29:49
Module Name:	src
Committed By:	nathanw
Date:		Mon Jan  6 17:29:48 UTC 2003

Modified Files:
	src/sys/kern [nathanw_sa]: kern_synch.c

Log Message:
Adjust schedcpu() to make more sense in the face of multi-LWP
processes; iterate primarly over processes, calculate newcpu, and
then iterate over LWPs and calculate priorities. This avoids repeating
the newcpu calculation for each LWP in a process, which would tend to
underestimate the CPU consumed by a multi-LWP process.


To generate a diff of this commit:
cvs rdiff -r1.101.2.29 -r1.101.2.30 src/sys/kern/kern_synch.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.