1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

Fix mis-merged line, move SC_LOOKUP() call to

upper level.
This commit is contained in:
David Xu 2012-05-05 23:51:24 +00:00
parent d426064666
commit 173943ace3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=235068

View File

@ -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;