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:
parent
d426064666
commit
173943ace3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=235068
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user