summaryrefslogtreecommitdiff
path: root/sys/arch/arc
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2000-10-27 00:16:23 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2000-10-27 00:16:23 +0000
commit67e938d0a4ec2ca3e2bbe2d39afe34e5146c0075 (patch)
tree2bfa99c7d3c2fcef2a775255d47af558732bead1 /sys/arch/arc
parent3baedb3aee3a7fa00893369f1616007172d20251 (diff)
more precise BUFCACHEPERCENT calculations.
from gluk@ptci.ru; deraadt@ and niklas@ ok
Diffstat (limited to 'sys/arch/arc')
-rw-r--r--sys/arch/arc/arc/machdep.c8
1 files changed, 4 insertions, 4 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;