svn commit: r235068 - head/lib/libthr/thread
David Xu
davidxu at FreeBSD.org
Sat May 5 23:51:25 UTC 2012
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;
More information about the svn-src-head
mailing list