Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2012 10:31:17 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r235893 - stable/9/sys/kern
Message-ID:  <201205241031.q4OAVHA3032438@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Thu May 24 10:31:17 2012
New Revision: 235893
URL: http://svn.freebsd.org/changeset/base/235893

Log:
  MFC r232782:
  
  Remove useless thread_{lock,unlock}() in raccd.

Modified:
  stable/9/sys/kern/kern_racct.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/kern/kern_racct.c
==============================================================================
--- stable/9/sys/kern/kern_racct.c	Thu May 24 10:30:13 2012	(r235892)
+++ stable/9/sys/kern/kern_racct.c	Thu May 24 10:31:17 2012	(r235893)
@@ -718,11 +718,8 @@ racctd(void)
 			timevalsub(&wallclock, &p->p_stats->p_start);
 			PROC_LOCK(p);
 			PROC_SLOCK(p);
-			FOREACH_THREAD_IN_PROC(p, td) {
+			FOREACH_THREAD_IN_PROC(p, td)
 				ruxagg(p, td);
-				thread_lock(td);
-				thread_unlock(td);
-			}
 			runtime = cputick2usec(p->p_rux.rux_runtime);
 			PROC_SUNLOCK(p);
 #ifdef notyet



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205241031.q4OAVHA3032438>