summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exit.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-02-06 21:56:13 +0000
committerjhb <jhb@FreeBSD.org>2006-02-06 21:56:13 +0000
commitdb29bc1e158dbd91e9a0fff0a9fa2b95d09f51c4 (patch)
treee094658caebc7a3fc762c4d6c36c3a35db486c65 /sys/kern/kern_exit.c
parent2eb77c6d1842c521b5a3ebcfa89c931f73df07a4 (diff)
downloadFreeBSD-src-db29bc1e158dbd91e9a0fff0a9fa2b95d09f51c4.zip
FreeBSD-src-db29bc1e158dbd91e9a0fff0a9fa2b95d09f51c4.tar.gz
- Move the wakeup() for exiting kthreads out of exit1() and into
kthread_exit() as that is cleaner and less obscured. It also does the wakeup sooner. - Add some comments to kthread_exit().
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r--sys/kern/kern_exit.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 8feb178..b907981 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -508,12 +508,6 @@ retry:
psignal(p->p_pptr, p->p_sigparent);
}
PROC_UNLOCK(p->p_pptr);
-
- /*
- * If this is a kthread, then wakeup anyone waiting for it to exit.
- */
- if (p->p_flag & P_KTHREAD)
- wakeup(p);
PROC_UNLOCK(p);
/*
OpenPOWER on IntegriCloud