summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
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/amd64
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/amd64')
-rw-r--r--sys/arch/amd64/amd64/machdep.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c
index e3802e15839..d747347d756 100644
--- a/sys/arch/amd64/amd64/machdep.c
+++ b/sys/arch/amd64/amd64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.100 2009/08/11 18:46:31 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.101 2009/08/11 19:17:16 miod Exp $ */
/* $NetBSD: machdep.c,v 1.3 2003/05/07 22:58:18 fvdl Exp $ */
/*-
@@ -307,13 +307,6 @@ cpu_startup(void)
ptoa((psize_t)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.
*/