mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-30 02:27:03 -04:00
[PATCH] x86_64: Limit max number of CPUs to 255
Because 256 causes overflows in some code that stores them in 8 bit fields and the x86 APIC architecture cannot handle more than 255 anyways. Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
5b922cd429
commit
01d4bed417
@@ -323,7 +323,7 @@ config HAVE_ARCH_EARLY_PFN_TO_NID
|
||||
|
||||
config NR_CPUS
|
||||
int "Maximum number of CPUs (2-256)"
|
||||
range 2 256
|
||||
range 2 255
|
||||
depends on SMP
|
||||
default "8"
|
||||
help
|
||||
|
||||
Reference in New Issue
Block a user