diff options
author | Peter Grehan <grehan@FreeBSD.org> | 2014-04-29 17:22:29 +0000 |
---|---|---|
committer | Peter Grehan <grehan@FreeBSD.org> | 2014-04-29 17:22:29 +0000 |
commit | d6cd193e5edcf2c227d01c4fa91256789573d0bf (patch) | |
tree | 06385fddadc47744f32f9331741ded271526745f | |
parent | 4b55d3602fb9df5f50073ea9c363357f79490855 (diff) | |
download | src-d6cd193e5edcf2c227d01c4fa91256789573d0bf.tar.gz src-d6cd193e5edcf2c227d01c4fa91256789573d0bf.zip |
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
Notes
Notes:
svn path=/head/; revision=265098
-rw-r--r-- | sys/kern/subr_witness.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c index 34db6d4b1b6a..86e1b16015e0 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 |