summaryrefslogtreecommitdiff
path: root/sys/arch/arm
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-08-01 15:42:47 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-08-01 15:42:47 +0000
commit74ce77dc91600edc94c95e9caa8f22903047c0a1 (patch)
tree4ec45934e6a2cae30e98153974fc1286639da98a /sys/arch/arm
parent9bdeaf2bb949cca11369b3917fe8fec0fa727768 (diff)
Kill more "memory might be 2MB or less" checks in bufpages computation.
ok deraadt@ otto@
Diffstat (limited to 'sys/arch/arm')
-rw-r--r--sys/arch/arm/arm/arm32_machdep.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/arch/arm/arm/arm32_machdep.c b/sys/arch/arm/arm/arm32_machdep.c
index 92ac339ce6e..2b7a44e17b3 100644
--- a/sys/arch/arm/arm/arm32_machdep.c
+++ b/sys/arch/arm/arm/arm32_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arm32_machdep.c,v 1.13 2005/04/26 01:12:27 deraadt Exp $ */
+/* $OpenBSD: arm32_machdep.c,v 1.14 2005/08/01 15:42:46 miod Exp $ */
/* $NetBSD: arm32_machdep.c,v 1.42 2003/12/30 12:33:15 pk Exp $ */
/*
@@ -666,11 +666,8 @@ allocsys(caddr_t v)
* i/o buffers.
*/
if (bufpages == 0) {
- if (physmem < btoc(2 * 1024 * 1024))
- bufpages = physmem / 10;
- else
- bufpages = (btoc(2 * 1024 * 1024) + physmem) *
- bufcachepercent / 100;
+ bufpages = (btoc(2 * 1024 * 1024) + physmem) *
+ bufcachepercent / 100;
}
if (nbuf == 0) {
nbuf = bufpages;