From: Andi Kleen Date: Sat, 25 Mar 2006 15:30:58 +0000 (+0100) Subject: [PATCH] x86_64: Limit max number of CPUs to 255 X-Git-Tag: v2.6.17-rc1~689 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=01d4bed417b5943577e9290fbf672ea9a449dc46;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: Linus Torvalds --- diff --git a/arch/x86_64/Kconfig b/arch/x86_64/Kconfig index 24a3016c079..6fc63145719 100644 --- a/arch/x86_64/Kconfig +++ b/arch/x86_64/Kconfig @@ -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