diff options
| author | Jake Burkholder <jake@FreeBSD.org> | 2001-07-06 01:16:43 +0000 |
|---|---|---|
| committer | Jake Burkholder <jake@FreeBSD.org> | 2001-07-06 01:16:43 +0000 |
| commit | d652b3d9187ce3b367393326cbd1eaaf43575524 (patch) | |
| tree | 9885d5202221baf43ef381d60b5693cbd699e1c9 /sys/kern/kern_synch.c | |
| parent | b8c368430c39ad9f5713bbd4db4177e8225797ea (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_synch.c')
| -rw-r--r-- | sys/kern/kern_synch.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index 7d55f6756ab4..530b67ed1d5d 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -709,21 +709,16 @@ unsleep(p) } /* - * Make all processes sleeping on the specified identifier runnable. If - * non-NULL, the specified mutex is dropped before any processes are made - * runnable. + * Make all processes sleeping on the specified identifier runnable. */ void -mwakeup(ident, mtx) +wakeup(ident) register void *ident; - register struct mtx *mtx; { register struct slpquehead *qp; register struct proc *p; mtx_lock_spin(&sched_lock); - if (mtx != NULL) - mtx_unlock_flags(mtx, MTX_NOSWITCH); qp = &slpque[LOOKUP(ident)]; restart: TAILQ_FOREACH(p, qp, p_slpq) { @@ -756,20 +751,16 @@ restart: /* * Make a process sleeping on the specified identifier runnable. * May wake more than one process if a target process is currently - * swapped out. If non-NULL, the specified mutex is dropped before - * a process is made runnable. + * swapped out. */ void -mwakeup_one(ident, mtx) +wakeup_one(ident) register void *ident; - register struct mtx *mtx; { register struct slpquehead *qp; register struct proc *p; mtx_lock_spin(&sched_lock); - if (mtx != NULL) - mtx_unlock_flags(mtx, MTX_NOSWITCH); qp = &slpque[LOOKUP(ident)]; TAILQ_FOREACH(p, qp, p_slpq) { |
