Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 May 2012 23:51:24 +0000 (UTC)
From:      David Xu <davidxu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r235068 - head/lib/libthr/thread
Message-ID:  <201205052351.q45NpOLB087675@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: davidxu
Date: Sat May  5 23:51:24 2012
New Revision: 235068
URL: http://svn.freebsd.org/changeset/base/235068

Log:
  Fix mis-merged line, move SC_LOOKUP() call to
  upper level.

Modified:
  head/lib/libthr/thread/thr_sleepq.c

Modified: head/lib/libthr/thread/thr_sleepq.c
==============================================================================
--- head/lib/libthr/thread/thr_sleepq.c	Sat May  5 22:44:08 2012	(r235067)
+++ head/lib/libthr/thread/thr_sleepq.c	Sat May  5 23:51:24 2012	(r235068)
@@ -113,11 +113,11 @@ _sleepq_add(void *wchan, struct pthread 
 	struct sleepqueue_chain *sc;
 	struct sleepqueue *sq;
 
+	sc = SC_LOOKUP(wchan);
 	sq = _sleepq_lookup(wchan);
 	if (sq != NULL) {
 		SLIST_INSERT_HEAD(&sq->sq_freeq, td->sleepqueue, sq_flink);
 	} else {
-		sc = SC_LOOKUP(wchan);
 		sq = td->sleepqueue;
 		LIST_INSERT_HEAD(&sc->sc_queues, sq, sq_hash);
 		sq->sq_wchan = wchan;



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