Subject: CVS commit: [nathanw_sa] syssrc/sys/kern
To: None <>
From: Nathan J Williams <>
List: source-changes
Date: 04/02/2002 03:16:01
Module Name:	syssrc
Committed By:	nathanw
Date:		Tue Apr  2 00:16:01 UTC 2002

Modified Files:
	syssrc/sys/kern [nathanw_sa]: kern_lwp.c kern_sa.c kern_sig.c
	    kern_synch.c kern_time.c

Log Message:
- Centralize p_nrlwps handling in those functions which actually
  set the LWP state to LSRUN. Simplifies matters considerably.

- Trying to keep track of the preempted LWP was a bad idea; go back
  to searching for now.

- Send a PREEMPTED upcall from proc_unstop(), so that stopped processes
  know that something happened, and so that all runnable LWPs of a unstopped
  process have an upcall to deliver (Ideally, the LWP that was runnable
  when the process was stopped should return first, and any LWPs that were
  woken up while the process was stopped would interrupt it, but that's
  difficult to arrange).

To generate a diff of this commit:
cvs rdiff -r1.1.2.8 -r1.1.2.9 syssrc/sys/kern/kern_lwp.c
cvs rdiff -r1.1.2.18 -r1.1.2.19 syssrc/sys/kern/kern_sa.c
cvs rdiff -r1.112.2.12 -r1.112.2.13 syssrc/sys/kern/kern_sig.c
cvs rdiff -r1.101.2.11 -r1.101.2.12 syssrc/sys/kern/kern_synch.c
cvs rdiff -r1.54.2.11 -r1.54.2.12 syssrc/sys/kern/kern_time.c

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