summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2014-04-29 17:22:29 +0000
committergrehan <grehan@FreeBSD.org>2014-04-29 17:22:29 +0000
commit455d465e40aeddf7bb56682beb08e0a157f5439e (patch)
tree06385fddadc47744f32f9331741ded271526745f
parent0a3c433fc719e86ba6f62687c8823550636ad3da (diff)
downloadFreeBSD-src-455d465e40aeddf7bb56682beb08e0a157f5439e.zip
FreeBSD-src-455d465e40aeddf7bb56682beb08e0a157f5439e.tar.gz
Bump WITNESS_PENDLIST by MAXCPU to account for the
pmap pvlist locks which are scaled by MAXCPU. This allows an amd64 system to boot with MAXCPU set to 256, which is currently FreeBSD's hard limit without x2apic support. Compile-tested for other arch's. PR: 185831 Discussed with: jhb MFC after: 3 weeks
-rw-r--r--sys/kern/subr_witness.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index 34db6d4..86e1b16 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -135,7 +135,7 @@ __FBSDID("$FreeBSD$");
#define WITNESS_COUNT 1536
#define WITNESS_CHILDCOUNT (WITNESS_COUNT * 4)
#define WITNESS_HASH_SIZE 251 /* Prime, gives load factor < 2 */
-#define WITNESS_PENDLIST 1024
+#define WITNESS_PENDLIST (1024 + MAXCPU)
/* Allocate 256 KB of stack data space */
#define WITNESS_LO_DATA_COUNT 2048
OpenPOWER on IntegriCloud