diff options
author | Julian Elischer <julian@FreeBSD.org> | 2002-07-30 20:34:30 +0000 |
---|---|---|
committer | Julian Elischer <julian@FreeBSD.org> | 2002-07-30 20:34:30 +0000 |
commit | b8e45df77939d00741da2758378e105c363c0729 (patch) | |
tree | 648e6a5af6d71589cd6f6ceaa5dc481677ae9910 /sys/kern/kern_condvar.c | |
parent | d1691a2ff655bf43b3a2603867c9aeef7e8f2a23 (diff) | |
download | src-b8e45df77939d00741da2758378e105c363c0729.tar.gz src-b8e45df77939d00741da2758378e105c363c0729.zip |
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.
Notes
Notes:
svn path=/head/; revision=100971
Diffstat (limited to 'sys/kern/kern_condvar.c')
-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 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; |