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/luna88k/luna88k/autoconf.c | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) (limited to 'sys/arch/luna88k') diff --git a/sys/arch/luna88k/luna88k/autoconf.c b/sys/arch/luna88k/luna88k/autoconf.c index 6996e149a5f..90474e34788 100644 --- a/sys/arch/luna88k/luna88k/autoconf.c +++ b/sys/arch/luna88k/luna88k/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.5 2005/04/30 16:42:33 miod Exp $ */ +/* $OpenBSD: autoconf.c,v 1.6 2005/12/27 18:31:09 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); void dumpconf(void); int findblkmajor(struct device *); struct device *getdisk(char *, int, int, dev_t *); @@ -87,33 +86,11 @@ cpu_configure() set_psr(get_psr() & ~PSR_IND); spl0(); setroot(); - swapconf(); + dumpconf(); 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