1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

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 Elischer 2002-07-30 20:34:30 +00:00
parent d1691a2ff6
commit b8e45df779
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100971

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;