summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-12-27 18:31:13 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-12-27 18:31:13 +0000
commit2c83fdf7a5b01f033c7a583c25a774c665b25848 (patch)
tree6c1274fecc59bcb6dfeae362e8697d1c1ef94e32 /sys/arch/mvme88k
parent1728d3241352f3c138c9ba4ca3293d8875e4bf63 (diff)
Remove unused sw_nblks field of struct swdevt. Then, remove swapconf()
which duplicates work done by uvm_swap_init().
Diffstat (limited to 'sys/arch/mvme88k')
-rw-r--r--sys/arch/mvme88k/mvme88k/autoconf.c26
1 files changed, 2 insertions, 24 deletions
diff --git a/sys/arch/mvme88k/mvme88k/autoconf.c b/sys/arch/mvme88k/mvme88k/autoconf.c
index c3b9bd1bed8..9cb459fcbcd 100644
--- a/sys/arch/mvme88k/mvme88k/autoconf.c
+++ b/sys/arch/mvme88k/mvme88k/autoconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: autoconf.c,v 1.31 2005/04/30 16:42:37 miod Exp $ */
+/* $OpenBSD: autoconf.c,v 1.32 2005/12/27 18:31:10 miod Exp $ */
/*
* Copyright (c) 1998 Steve Murphree, Jr.
* Copyright (c) 1996 Nivas Madhur
@@ -57,7 +57,6 @@
struct device *parsedisk(char *, int, int, dev_t *);
void setroot(void);
-void swapconf(void);
char buginchr(void);
void dumpconf(void);
int findblkmajor(struct device *);
@@ -88,7 +87,7 @@ cpu_configure()
set_psr(get_psr() & ~PSR_IND);
spl0();
setroot();
- swapconf();
+ dumpconf();
/*
* Finally switch to the real console driver,
@@ -100,27 +99,6 @@ cpu_configure()
cold = 0;
}
-/*
- * Configure swap space and related parameters.
- */
-void
-swapconf()
-{
- struct swdevt *swp;
- int nblks;
-
- for (swp = swdevt; swp->sw_dev != NODEV; swp++)
- if (bdevsw[major(swp->sw_dev)].d_psize) {
- nblks =
- (*bdevsw[major(swp->sw_dev)].d_psize)(swp->sw_dev);
- if (nblks != -1 &&
- (swp->sw_nblks == 0 || swp->sw_nblks > nblks))
- swp->sw_nblks = nblks;
- swp->sw_nblks = ctod(dtoc(swp->sw_nblks));
- }
- dumpconf();
-}
-
struct nam2blk {
char *name;
int maj;