diff options
| author | David Xu <davidxu@FreeBSD.org> | 2006-02-23 00:13:58 +0000 |
|---|---|---|
| committer | David Xu <davidxu@FreeBSD.org> | 2006-02-23 00:13:58 +0000 |
| commit | c008d51784fcf687ead08c048dc807ad09e5ee3c (patch) | |
| tree | 7e38ae2e71791b901f46413e77ea39d2b4ba7ae0 /sys/kern/kern_condvar.c | |
| parent | 3e0ded9327068d38e9e481431d1d2e1d0cba93a9 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_condvar.c')
| -rw-r--r-- | sys/kern/kern_condvar.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/sys/kern/kern_condvar.c b/sys/kern/kern_condvar.c index f430ea8accfa..73779816d517 100644 --- a/sys/kern/kern_condvar.c +++ b/sys/kern/kern_condvar.c @@ -192,18 +192,6 @@ cv_wait_sig(struct cv *cvp, struct mtx *mp) sleepq_lock(cvp); - /* - * Don't bother sleeping if we are exiting and not the exiting - * thread or if our thread is marked as interrupted. - */ - mtx_lock_spin(&sched_lock); - rval = thread_sleep_check(td); - mtx_unlock_spin(&sched_lock); - if (rval != 0) { - sleepq_release(cvp); - return (rval); - } - cvp->cv_waiters++; DROP_GIANT(); mtx_unlock(mp); @@ -315,18 +303,6 @@ cv_timedwait_sig(struct cv *cvp, struct mtx *mp, int timo) sleepq_lock(cvp); - /* - * Don't bother sleeping if we are exiting and not the exiting - * thread or if our thread is marked as interrupted. - */ - mtx_lock_spin(&sched_lock); - rval = thread_sleep_check(td); - mtx_unlock_spin(&sched_lock); - if (rval != 0) { - sleepq_release(cvp); - return (rval); - } - cvp->cv_waiters++; DROP_GIANT(); mtx_unlock(mp); |
