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/luna88k | |
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/luna88k')
-rw-r--r-- | sys/arch/luna88k/luna88k/autoconf.c | 27 |
1 files changed, 2 insertions, 25 deletions
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; |