svn commit: r204089 - head/sys/kern

Attilio Rao attilio at FreeBSD.org
Fri Feb 19 15:10:05 UTC 2010


Author: attilio
Date: Fri Feb 19 15:10:05 2010
New Revision: 204089
URL: http://svn.freebsd.org/changeset/base/204089

Log:
  Use the cached value within comparison.
  
  Submitted by:	jhb

Modified:
  head/sys/kern/kern_kthread.c

Modified: head/sys/kern/kern_kthread.c
==============================================================================
--- head/sys/kern/kern_kthread.c	Fri Feb 19 15:03:55 2010	(r204088)
+++ head/sys/kern/kern_kthread.c	Fri Feb 19 15:10:05 2010	(r204089)
@@ -317,7 +317,7 @@ kthread_exit(void)
 	/* A module may be waiting for us to exit. */
 	wakeup(curthread);
 	PROC_LOCK(p);
-	if (curthread->td_proc->p_numthreads == 1) {
+	if (p->p_numthreads == 1) {
 		PROC_UNLOCK(p);
 		kproc_exit(0);
 


More information about the svn-src-head mailing list