From 38bf2accf63b7c417aacaff5dcba2ead920266d7 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Fri, 15 Mar 2013 13:25:38 +1100 Subject: Revert "add an interface to check if we have a pending wakeup" This reverts commit 26ddd8e1ac6d6164b9be99e58770924a87b770c7. --- sys/kern/kern_synch.c | 21 --------------------- sys/sys/systm.h | 1 - 2 files changed, 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); -- cgit v1.2.3