Skip to content

Commit

Permalink
[PATCH] x86_64: Limit max number of CPUs to 255
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Mar 25, 2006
1 parent 5b922cd commit 01d4bed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86_64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 01d4bed

Please sign in to comment.