diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-12-27 18:31:13 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-12-27 18:31:13 +0000 |
commit | 2c83fdf7a5b01f033c7a583c25a774c665b25848 (patch) | |
tree | 6c1274fecc59bcb6dfeae362e8697d1c1ef94e32 /sys/arch/amd64 | |
parent | 1728d3241352f3c138c9ba4ca3293d8875e4bf63 (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/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/autoconf.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/sys/arch/amd64/amd64/autoconf.c b/sys/arch/amd64/amd64/autoconf.c index e25094344e9..81804cbe4ff 100644 --- a/sys/arch/amd64/amd64/autoconf.c +++ b/sys/arch/amd64/amd64/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.10 2005/12/13 00:18:19 jsg Exp $ */ +/* $OpenBSD: autoconf.c,v 1.11 2005/12/27 18:31:08 miod Exp $ */ /* $NetBSD: autoconf.c,v 1.1 2003/04/26 18:39:26 fvdl Exp $ */ /*- @@ -75,7 +75,6 @@ void setroot(void); void rootconf(void); -void swapconf(void); void diskconf(void); int findblkmajor(struct device *); char *findblkname(int); @@ -139,28 +138,9 @@ diskconf(void) dkcsumattach(); rootconf(); - swapconf(); dumpconf(); } -void -swapconf(void) -{ - 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)); - } - } -} - struct device * parsedisk(str, len, defpart, devp) char *str; |