From 2c83fdf7a5b01f033c7a583c25a774c665b25848 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Tue, 27 Dec 2005 18:31:13 +0000 Subject: Remove unused sw_nblks field of struct swdevt. Then, remove swapconf() which duplicates work done by uvm_swap_init(). --- sys/arch/mvme88k/mvme88k/autoconf.c | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) (limited to 'sys/arch/mvme88k') 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; -- cgit v1.2.3