summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2011-05-07 15:27:02 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2011-05-07 15:27:02 +0000
commitd880748ace992868d7de87446b3d35ce74e5ef6f (patch)
treebd0c915460639efb294f3f8b2c1ab47fcd863d2e /sys
parent25b5053dac18a6faeea60928222447d7a02b4a31 (diff)
So long, uvm_pglist.h
This header defined three thing. two of which are unused throughout the tree, the final one was the definition of the pagq head type, move that to uvm_page.h and nuke the header ok thib@. Thanks to krw@ for testing the hppa build for me.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hppa/include/pmap.h3
-rw-r--r--sys/arch/hppa64/include/pmap.h4
-rw-r--r--sys/arch/i386/include/pmap.h3
-rw-r--r--sys/uvm/uvm_page.h5
-rw-r--r--sys/uvm/uvm_pglist.h54
5 files changed, 7 insertions, 62 deletions
diff --git a/sys/arch/hppa/include/pmap.h b/sys/arch/hppa/include/pmap.h
index 0a0aad3bbbc..563c1f8d2bb 100644
--- a/sys/arch/hppa/include/pmap.h
+++ b/sys/arch/hppa/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.41 2011/04/28 20:42:28 ariane Exp $ */
+/* $OpenBSD: pmap.h,v 1.42 2011/05/07 15:27:01 oga Exp $ */
/*
* Copyright (c) 2002-2004 Michael Shalayeff
@@ -30,7 +30,6 @@
#define _MACHINE_PMAP_H_
#include <machine/pte.h>
-#include <uvm/uvm_pglist.h>
#include <uvm/uvm_object.h>
#ifdef _KERNEL
diff --git a/sys/arch/hppa64/include/pmap.h b/sys/arch/hppa64/include/pmap.h
index 3f8b7c03e05..ed847b04cfe 100644
--- a/sys/arch/hppa64/include/pmap.h
+++ b/sys/arch/hppa64/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.5 2011/04/28 20:43:41 ariane Exp $ */
+/* $OpenBSD: pmap.h,v 1.6 2011/05/07 15:27:01 oga Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -21,7 +21,7 @@
#define _MACHINE_PMAP_H_
#include <machine/pte.h>
-#include <uvm/uvm_pglist.h>
+#include <uvm/uvm_page.h>
#include <uvm/uvm_object.h>
struct pmap {
diff --git a/sys/arch/i386/include/pmap.h b/sys/arch/i386/include/pmap.h
index 7c269ff5be5..e8d7b8f45f0 100644
--- a/sys/arch/i386/include/pmap.h
+++ b/sys/arch/i386/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.57 2011/03/23 16:54:35 pirofti Exp $ */
+/* $OpenBSD: pmap.h,v 1.58 2011/05/07 15:27:01 oga Exp $ */
/* $NetBSD: pmap.h,v 1.44 2000/04/24 17:18:18 thorpej Exp $ */
/*
@@ -43,7 +43,6 @@
#include <machine/cpufunc.h>
#include <machine/pte.h>
#include <machine/segments.h>
-#include <uvm/uvm_pglist.h>
#include <uvm/uvm_object.h>
/*
diff --git a/sys/uvm/uvm_page.h b/sys/uvm/uvm_page.h
index 816278f8171..f936882425b 100644
--- a/sys/uvm/uvm_page.h
+++ b/sys/uvm/uvm_page.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_page.h,v 1.45 2011/04/02 12:38:37 ariane Exp $ */
+/* $OpenBSD: uvm_page.h,v 1.46 2011/05/07 15:27:01 oga Exp $ */
/* $NetBSD: uvm_page.h,v 1.19 2000/12/28 08:24:55 chs Exp $ */
/*
@@ -96,7 +96,8 @@
*/
#include <uvm/uvm_extern.h>
-#include <uvm/uvm_pglist.h>
+
+TAILQ_HEAD(pglist, vm_page);
struct vm_page {
TAILQ_ENTRY(vm_page) pageq; /* queue info for FIFO
diff --git a/sys/uvm/uvm_pglist.h b/sys/uvm/uvm_pglist.h
deleted file mode 100644
index a6095034e95..00000000000
--- a/sys/uvm/uvm_pglist.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/* $OpenBSD: uvm_pglist.h,v 1.6 2008/06/26 05:42:20 ray Exp $ */
-/* $NetBSD: uvm_pglist.h,v 1.3 2001/05/02 01:22:20 thorpej Exp $ */
-
-/*-
- * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Jason R. Thorpe.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef _PGLIST_H_
-#define _PGLIST_H_
-
-/*
- * This defines the type of a page queue, e.g. active list, inactive
- * list, etc.
- */
-TAILQ_HEAD(pglist, vm_page);
-
-/*
- * A page free list consists of free pages of unknown contents and free
- * pages of all zeros.
- */
-#define PGFL_UNKNOWN 0
-#define PGFL_ZEROS 1
-#define PGFL_NQUEUES 2
-
-struct pgfreelist {
- struct pglist pgfl_queues[PGFL_NQUEUES];
-};
-
-#endif