diff options
author | julian <julian@FreeBSD.org> | 2002-07-30 20:34:30 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2002-07-30 20:34:30 +0000 |
commit | c0659893033b1ba9d6593a2ad659ca7b288a7f03 (patch) | |
tree | 648e6a5af6d71589cd6f6ceaa5dc481677ae9910 /sys/kern | |
parent | cd1b46e6b0f099c7be2a897f817fe301ee8eb4f8 (diff) | |
download | FreeBSD-src-c0659893033b1ba9d6593a2ad659ca7b288a7f03.zip FreeBSD-src-c0659893033b1ba9d6593a2ad659ca7b288a7f03.tar.gz |
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.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_condvar.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/kern/kern_condvar.c b/sys/kern/kern_condvar.c index 1a99686..53c8571 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; |