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/hppa | |
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/hppa')
-rw-r--r-- | sys/arch/hppa/hppa/autoconf.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/sys/arch/hppa/hppa/autoconf.c b/sys/arch/hppa/hppa/autoconf.c index 0bb5f69efdc..1c9d0ea8325 100644 --- a/sys/arch/hppa/hppa/autoconf.c +++ b/sys/arch/hppa/hppa/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.43 2005/01/17 22:33:40 mickey Exp $ */ +/* $OpenBSD: autoconf.c,v 1.44 2005/12/27 18:31:08 miod Exp $ */ /* * Copyright (c) 1998-2003 Michael Shalayeff @@ -65,7 +65,6 @@ #endif void setroot(void); -void swapconf(void); void dumpconf(void); int findblkmajor(struct device *dv); @@ -113,7 +112,6 @@ cpu_configure(void) spl0(); setroot(); - swapconf(); dumpconf(); if (cold_hook) (*cold_hook)(HPPA_COLD_HOT); @@ -172,29 +170,6 @@ heartbeat(v) #endif /* - * Configure swap space and related parameters. - */ -void -swapconf(void) -{ - struct swdevt *swp; - int nblks, maj; - - for (swp = swdevt; swp->sw_dev != NODEV; swp++) { - maj = major(swp->sw_dev); - if (maj > nblkdev) - break; - if (bdevsw[maj].d_psize) { - nblks = (*bdevsw[maj].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)); - } - } -} - -/* * This is called by configure to set dumplo and dumpsize. * Dumps always skip the first CLBYTES of disk space * in case there might be a disk label stored there. |