Submit #2786
closed[PATCH] kernel -- Remove unused xwait headers.
0%
Description
xsleep/xwakeup were added to DragonFly in 2003 to replace asleep/awakeup from
FreeBSD 4.x. tsleep & wakeup sleep on untyped identifiers; the sleep routines
do not store through the identifiers and treat them as opaque. xsleep/xwakeup
in contrast slept on explicit sleep structures, 'struct xwait'.
xsleep / xwakeup were never used; they were born #if-0ed out and were removed
by 2004. This commit removes a legacy declaration and associated header.
---
sys/kern/kern_synch.c | 1
sys/sys/systm.h | 1 -
sys/sys/xwait.h | 32 -------------------------------
3 files changed, 34 deletions(-)
delete mode 100644 sys/sys/xwait.h
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index 59aa363..9285e2a 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c@ -50,7 +50,6
@
#ifdef KTRACE
#include <sys/ktrace.h>
#endif
-#include <sys/xwait.h>
#include <sys/ktr.h>
#include <sys/serialize.h>
diff --git a/sys/sys/systm.h b/sys/sys/systm.h
index dfcdd80..ddd3dc1 100644
--- a/sys/sys/systm.h
++ b/sys/sys/systm.h@ -128,7 +128,6
@ struct mtx;
struct lwkt_serialize;
struct malloc_type;
struct proc;struct xwait; a/sys/sys/xwait.h
struct timeval;
struct tty;
struct uio;
diff --git a/sys/sys/xwait.h b/sys/sys/xwait.h
deleted file mode 100644
index b392a0f..0000000
--
++ /dev/null@ -1,32 +0,0
@/* * SYS/XWAIT.H
-
- * $DragonFly: src/sys/sys/xwait.h,v 1.2 2006/05/20 02:42:13 dillon Exp $
- */#ifndef SYS_XWAIT_H#define SYS_XWAIT_H#ifndef SYS_QUEUE_H#include <sys/queue.h>#endifstruct proc;/
* XWAIT structure for xsleep()/xwakeup()
- */ int gen;
-struct xwait {
- TAILQ_HEAD(,proc) waitq;};static __inline void{
-xupdate_gen(struct xwait *w)
- ++w->gen;}#endif
--
2.1.0
Updated by swildner over 9 years ago
- Status changed from New to Closed
Thanks, pushed (4235d6d609bf06c1fd35dae6e73262100d503836)