Skip to content

Commit

Permalink
x86: increase MAX_APICS for very large x86-64 configs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jack Steiner authored and Ingo Molnar committed Jul 8, 2008
1 parent b6df1b8 commit ab9c0bb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions include/asm-x86/mpspec_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
# 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 {
Expand Down

0 comments on commit ab9c0bb

Please sign in to comment.