summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-08-11 19:17:18 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-08-11 19:17:18 +0000
commit45443497d1b1837b0f507d85565636f50fa5cecf (patch)
treee668bde68e4fb4b463aba3fd31dd16875bb9ddb7 /sys/arch/sparc
parent71991877bea22a82789b29c8995baf0589fd2be4 (diff)
Do not bother initializing bufpages in the md code if the computation is
exactly the same the mi could will use if bufinit() is invoked with bufpages == 0.
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/sparc/machdep.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/arch/sparc/sparc/machdep.c b/sys/arch/sparc/sparc/machdep.c
index 5e0b5825ecf..3aba61d12dc 100644
--- a/sys/arch/sparc/sparc/machdep.c
+++ b/sys/arch/sparc/sparc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.122 2009/08/11 18:46:32 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.123 2009/08/11 19:17:17 miod Exp $ */
/* $NetBSD: machdep.c,v 1.85 1997/09/12 08:55:02 pk Exp $ */
/*
@@ -180,13 +180,6 @@ cpu_startup()
ptoa(physmem)/1024/1024);
/*
- * Determine how many buffers to allocate.
- * We allocate bufcachepercent% of memory for buffer space.
- */
- if (bufpages == 0)
- bufpages = physmem * bufcachepercent / 100;
-
- /*
* Allocate a submap for exec arguments. This map effectively
* limits the number of processes exec'ing at any time.
*/