summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_synch.c21
-rw-r--r--sys/sys/systm.h1
2 files changed, 0 insertions, 22 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index 6ba0697a3ae..f1db615348b 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -347,27 +347,6 @@ unsleep(struct proc *p)
}
}
-int
-wakeup_pending(const volatile void *ident)
-{
- struct slpque *qp;
- struct proc *p;
- struct proc *pnext;
- int s;
-
- SCHED_LOCK(s);
- qp = &slpque[LOOKUP(ident)];
- for (p = TAILQ_FIRST(qp); p != NULL; p = pnext) {
- pnext = TAILQ_NEXT(p, p_runq);
- if (p->p_wchan == ident) {
- SCHED_UNLOCK(s);
- return (1);
- }
- }
- SCHED_UNLOCK(s);
- return (0);
-}
-
/*
* Make a number of processes sleeping on the specified identifier runnable.
*/
diff --git a/sys/sys/systm.h b/sys/sys/systm.h
index a07dfe8a127..dd3823db0c8 100644
--- a/sys/sys/systm.h
+++ b/sys/sys/systm.h
@@ -253,7 +253,6 @@ struct mutex;
void wakeup_n(const volatile void *, int);
void wakeup(const volatile void *);
#define wakeup_one(c) wakeup_n((c), 1)
-int wakeup_pending(const volatile void *);
int tsleep(const volatile void *, int, const char *, int);
int msleep(const volatile void *, struct mutex *, int, const char*, int);
void yield(void);