summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/arc/arc/machdep.c8
-rw-r--r--sys/arch/i386/i386/machdep.c6
-rw-r--r--sys/arch/pmax/pmax/machdep.c6
-rw-r--r--sys/arch/powerpc/powerpc/machdep.c4
-rw-r--r--sys/arch/sparc/sparc/machdep.c4
-rw-r--r--sys/arch/sun3/sun3/machdep.c6
-rw-r--r--sys/arch/vax/vax/machdep.c6
7 files changed, 20 insertions, 20 deletions
diff --git a/sys/arch/arc/arc/machdep.c b/sys/arch/arc/arc/machdep.c
index e1d917ee00d..7d15ab03750 100644
--- a/sys/arch/arc/arc/machdep.c
+++ b/sys/arch/arc/arc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.38 2000/04/11 02:44:25 pjanzen Exp $ */
+/* $OpenBSD: machdep.c,v 1.39 2000/10/27 00:16:04 mickey Exp $ */
/*
* Copyright (c) 1988 University of Utah.
* Copyright (c) 1992, 1993
@@ -38,7 +38,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 8.3 (Berkeley) 1/12/94
- * $Id: machdep.c,v 1.38 2000/04/11 02:44:25 pjanzen Exp $
+ * $Id: machdep.c,v 1.39 2000/10/27 00:16:04 mickey Exp $
*/
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
@@ -514,8 +514,8 @@ mips_init(argc, argv, envv)
if (physmem < btoc(2 * 1024 * 1024))
bufpages = physmem / (10 * CLSIZE);
else
- bufpages = (btoc(2 * 1024 * 1024) + physmem) /
- ((100/BUFCACHEPERCENT) * CLSIZE);
+ bufpages = (btoc(2 * 1024 * 1024) + physmem) *
+ BUFCACHEPERCENT / (100 * CLSIZE);
}
if (nbuf == 0) {
nbuf = bufpages;
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index 6aa789d730b..849b7bc3a6f 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.136 2000/08/11 18:38:58 deraadt Exp $ */
+/* $OpenBSD: machdep.c,v 1.137 2000/10/27 00:16:14 mickey Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -490,8 +490,8 @@ allocsys(v)
if (physmem < btoc(2 * 1024 * 1024))
bufpages = physmem / (10 * CLSIZE);
else
- bufpages = (btoc(2 * 1024 * 1024) + physmem) /
- ((100/BUFCACHEPERCENT) * CLSIZE);
+ bufpages = (btoc(2 * 1024 * 1024) + physmem) *
+ BUFCACHEPERCENT / (100 * CLSIZE);
}
if (nbuf == 0) {
nbuf = bufpages;
diff --git a/sys/arch/pmax/pmax/machdep.c b/sys/arch/pmax/pmax/machdep.c
index a91be2883d4..d0ac1f70815 100644
--- a/sys/arch/pmax/pmax/machdep.c
+++ b/sys/arch/pmax/pmax/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.24 2000/07/04 05:46:23 maja Exp $ */
+/* $OpenBSD: machdep.c,v 1.25 2000/10/27 00:16:16 mickey Exp $ */
/* $NetBSD: machdep.c,v 1.67 1996/10/23 20:04:40 mhitch Exp $ */
/*
@@ -732,8 +732,8 @@ mach_init(argc, argv, code, cv)
if (physmem < btoc(2 * 1024 * 1024))
bufpages = physmem / (10 * CLSIZE);
else
- bufpages = (btoc(2 * 1024 * 1024) + physmem) /
- ((100/BUFCACHEPERCENT) * CLSIZE);
+ bufpages = (btoc(2 * 1024 * 1024) + physmem) *
+ BUFCACHEPERCENT / (100 * CLSIZE);
}
if (nbuf == 0) {
nbuf = bufpages;
diff --git a/sys/arch/powerpc/powerpc/machdep.c b/sys/arch/powerpc/powerpc/machdep.c
index d9619b96ccb..3e80964a191 100644
--- a/sys/arch/powerpc/powerpc/machdep.c
+++ b/sys/arch/powerpc/powerpc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.49 2000/10/19 03:13:57 drahn Exp $ */
+/* $OpenBSD: machdep.c,v 1.50 2000/10/27 00:16:17 mickey Exp $ */
/* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */
/*
@@ -604,7 +604,7 @@ allocsys(v)
* Decide on buffer space to use.
*/
if (bufpages == 0)
- bufpages = (physmem / ((100 / BUFCACHEPERCENT) / CLSIZE));
+ bufpages = physmem * BUFCACHEPERCENT / (100 * CLSIZE);
if (nbuf == 0) {
nbuf = bufpages;
if (nbuf < 16)
diff --git a/sys/arch/sparc/sparc/machdep.c b/sys/arch/sparc/sparc/machdep.c
index c85b92b58d1..2ee80aa751c 100644
--- a/sys/arch/sparc/sparc/machdep.c
+++ b/sys/arch/sparc/sparc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.50 2000/06/23 00:55:55 fgsch Exp $ */
+/* $OpenBSD: machdep.c,v 1.51 2000/10/27 00:16:20 mickey Exp $ */
/* $NetBSD: machdep.c,v 1.85 1997/09/12 08:55:02 pk Exp $ */
/*
@@ -432,7 +432,7 @@ allocsys(v)
* Allocate 1/2 as many swap buffer headers as file i/o buffers.
*/
if (bufpages == 0)
- bufpages = (physmem / ((100/BUFCACHEPERCENT) / CLSIZE));
+ bufpages = physmem * BUFCACHEPERCENT / (100 * CLSIZE);
if (nbuf == 0) {
nbuf = bufpages;
if (nbuf < 16)
diff --git a/sys/arch/sun3/sun3/machdep.c b/sys/arch/sun3/sun3/machdep.c
index a9d1ecc7609..800e598df4e 100644
--- a/sys/arch/sun3/sun3/machdep.c
+++ b/sys/arch/sun3/sun3/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.27 2000/04/29 20:37:31 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.28 2000/10/27 00:16:20 mickey Exp $ */
/* $NetBSD: machdep.c,v 1.77 1996/10/13 03:47:51 christos Exp $ */
/*
@@ -218,8 +218,8 @@ allocsys(v)
*/
if (bufpages == 0) {
/* We always have more than 2MB of memory. */
- bufpages = (btoc(2 * 1024 * 1024) + physmem) /
- ((100/BUFCACHEPERCENT) * CLSIZE);
+ bufpages = (btoc(2 * 1024 * 1024) + physmem) *
+ BUFCACHEPERCENT / (100 * CLSIZE);
}
if (nbuf == 0) {
nbuf = bufpages;
diff --git a/sys/arch/vax/vax/machdep.c b/sys/arch/vax/vax/machdep.c
index 91108f51d94..5c12d690d11 100644
--- a/sys/arch/vax/vax/machdep.c
+++ b/sys/arch/vax/vax/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.26 2000/10/17 19:57:55 hugh Exp $ */
+/* $OpenBSD: machdep.c,v 1.27 2000/10/27 00:16:22 mickey Exp $ */
/* $NetBSD: machdep.c,v 1.108 2000/09/13 15:00:23 thorpej Exp $ */
/*
@@ -789,8 +789,8 @@ allocsys(v)
if (physmem < btoc(2 * 1024 * 1024))
bufpages = physmem / (10 * CLSIZE);
else
- bufpages = (btoc(2 * 1024 * 1024) + physmem) /
- ((100 / BUFCACHEPERCENT) * CLSIZE);
+ bufpages = (btoc(2 * 1024 * 1024) + physmem) *
+ BUFCACHEPERCENT / (100 * CLSIZE);
}
if (nbuf == 0)
nbuf = bufpages < 16 ? 16 : bufpages;