kernel: Remove unused xwait headers. master
authorSascha Wildner <saw@online.de>
Sat, 28 Feb 2015 11:53:03 +0000 (12:53 +0100)
committerSascha Wildner <saw@online.de>
Sat, 28 Feb 2015 11:53:03 +0000 (12:53 +0100)
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.

Submitted-by: vsrinivas
Dragonfly-bug: <https://bugs.dragonflybsd.org/issues/2786>

Makefile_upgrade.inc
sys/kern/kern_synch.c
sys/sys/systm.h
sys/sys/xwait.h [deleted file]

index 7707455..46a0fed 100644 (file)
@@ -2825,6 +2825,7 @@ TO_REMOVE+=/usr/share/man/cat3/libhammer_get_volinfo.3.gz
 TO_REMOVE+=/usr/share/man/man3/libhammer_free_volinfo.3.gz
 TO_REMOVE+=/usr/share/man/cat3/libhammer_free_volinfo.3.gz
 TO_REMOVE+=/usr/share/examples/cvsup
+TO_REMOVE+=/usr/include/sys/xwait.h
 
 .if ${MACHINE_ARCH} == "x86_64"
 TO_REMOVE+=/usr/sbin/stlstats
index 7305ee8..6fd5434 100644 (file)
@@ -50,7 +50,6 @@
 #ifdef KTRACE
 #include <sys/ktrace.h>
 #endif
-#include <sys/xwait.h>
 #include <sys/ktr.h>
 #include <sys/serialize.h>
 
index dfcdd80..ddd3dc1 100644 (file)
@@ -128,7 +128,6 @@ struct mtx;
 struct lwkt_serialize;
 struct malloc_type;
 struct proc;
-struct xwait;
 struct timeval;
 struct tty;
 struct uio;
diff --git a/sys/sys/xwait.h b/sys/sys/xwait.h
deleted file mode 100644 (file)
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>
-#endif
-
-struct proc;
-
-/*
- * XWAIT structure for xsleep()/xwakeup()
- */
-
-struct xwait {
-    int     gen;
-    TAILQ_HEAD(,proc) waitq;
-};
-
-static __inline void
-xupdate_gen(struct xwait *w)
-{
-    ++w->gen;
-}
-
-#endif
-