]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: increase MAX_APICS for very large x86-64 configs
authorJack Steiner <steiner@sgi.com>
Mon, 16 Jun 2008 17:09:10 +0000 (12:09 -0500)
committerIngo Molnar <mingo@elte.hu>
Tue, 8 Jul 2008 10:23:29 +0000 (12:23 +0200)
Increase the maximum number of apics when running very large
configurations. This patch has no affect on most systems.

The patch has no effect on any 32-bit kernel. It adds ~4k to the size
of 64-bit kernels but only if NR_CPUS > 255.

Signed-off-by: Jack Steiner <steiner@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/asm-x86/mpspec_def.h

index dc6ef85e362439bc860efe5b3be34136302b206a..38d1e73b49e41ebc1fdd8b07d697697b6b0fff0d 100644 (file)
 # define MAX_MPC_ENTRY 1024
 # define MAX_APICS      256
 #else
-/*
- * A maximum of 255 APICs with the current APIC ID architecture.
- */
-# define MAX_APICS 255
+# if NR_CPUS <= 255
+#  define MAX_APICS     255
+# else
+#  define MAX_APICS   32768
+# endif
 #endif
 
 struct intel_mp_floating {