Commit ab9c0bb8 authored by Jack Steiner's avatar Jack Steiner Committed by Ingo Molnar

x86: increase MAX_APICS for very large x86-64 configs

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: default avatarJack Steiner <steiner@sgi.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent b6df1b8b
...@@ -17,10 +17,11 @@ ...@@ -17,10 +17,11 @@
# define MAX_MPC_ENTRY 1024 # define MAX_MPC_ENTRY 1024
# define MAX_APICS 256 # define MAX_APICS 256
#else #else
/* # if NR_CPUS <= 255
* A maximum of 255 APICs with the current APIC ID architecture. # define MAX_APICS 255
*/ # else
# define MAX_APICS 255 # define MAX_APICS 32768
# endif
#endif #endif
struct intel_mp_floating { struct intel_mp_floating {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment