[DragonFlyBSD - Submit #2786] (New) [PATCH] kernel -- Remove unused xwait headers.

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Thu Feb 12 02:54:33 PST 2015


Issue #2786 has been reported by vsrinivas.

----------------------------------------
Submit #2786: [PATCH] kernel -- Remove unused xwait headers.
http://bugs.dragonflybsd.org/issues/2786

* Author: vsrinivas
* Status: New
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
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;
  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
--- a/sys/sys/xwait.h
+++ /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
-
-- 
2.1.0



-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Submit mailing list