summaryrefslogtreecommitdiffstats
path: root/lib/libthr
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2012-05-05 23:51:24 +0000
committerdavidxu <davidxu@FreeBSD.org>2012-05-05 23:51:24 +0000
commit2299ae5c83613760360cb857ef0942b2d7c19cb7 (patch)
treef1dacc0ae32deaf982d3d5e5f89af601d778e9d3 /lib/libthr
parent3527361dea6ea8c32972bb23816d6ed71956a310 (diff)
downloadFreeBSD-src-2299ae5c83613760360cb857ef0942b2d7c19cb7.zip
FreeBSD-src-2299ae5c83613760360cb857ef0942b2d7c19cb7.tar.gz
Fix mis-merged line, move SC_LOOKUP() call to
upper level.
Diffstat (limited to 'lib/libthr')
-rw-r--r--lib/libthr/thread/thr_sleepq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_sleepq.c b/lib/libthr/thread/thr_sleepq.c
index 40553cb..98cb5a1 100644
--- a/lib/libthr/thread/thr_sleepq.c
+++ b/lib/libthr/thread/thr_sleepq.c
@@ -113,11 +113,11 @@ _sleepq_add(void *wchan, struct pthread *td)
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;
OpenPOWER on IntegriCloud