Project

General

Profile

Actions

Submit #2786

closed

[PATCH] kernel -- Remove unused xwait headers.

Added by vsrinivas about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
02/12/2015
Due date:
% Done:

0%

Estimated time:

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;
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

Actions #1

Updated by swildner about 9 years ago

  • Status changed from New to Closed

Thanks, pushed (4235d6d609bf06c1fd35dae6e73262100d503836)

Actions

Also available in: Atom PDF