From b8e45df77939d00741da2758378e105c363c0729 Mon Sep 17 00:00:00 2001 From: Julian Elischer Date: Tue, 30 Jul 2002 20:34:30 +0000 Subject: [PATCH] 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. --- sys/kern/kern_condvar.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sys/kern/kern_condvar.c b/sys/kern/kern_condvar.c index 1a99686b5655..53c85714141a 100644 --- a/sys/kern/kern_condvar.c +++ b/sys/kern/kern_condvar.c @@ -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;