summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@jsg.id.au>2013-03-15 13:25:38 +1100
committerJonathan Gray <jsg@jsg.id.au>2013-03-15 13:25:38 +1100
commit38bf2accf63b7c417aacaff5dcba2ead920266d7 (patch)
tree3e161d7ad4c93866e48651b5c167e1d219f2c98b
parenta7d8a3ed619deb5232ad0b06969a4573dad8681e (diff)
Revert "add an interface to check if we have a pending wakeup"
This reverts commit 26ddd8e1ac6d6164b9be99e58770924a87b770c7.
-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);