Remove code that removes thread from sleep queue before

adding it to a condvar wait.
We do not have asleep() any more so this can not happen.
This commit is contained in:
julian 2002-07-30 20:34:30 +00:00
parent c12174d890
commit 9a6aebed85

View File

@ -201,13 +201,6 @@ static __inline void
cv_waitq_add(struct cv *cvp, struct thread *td)
{
/*
* Process may be sitting on a slpque if asleep() was called, remove it
* before re-adding.
*/
if (td->td_wchan != NULL)
unsleep(td);
td->td_flags |= TDF_CVWAITQ;
td->td_wchan = cvp;
td->td_wmesg = cvp->cv_description;