Commit 0d9adec525b87d8ab7e64efeabffb5b3f293056e

Authored by Jack Steiner
Committed by Tony Luck
1 parent 308a878210

[IA64] - Fix MAX_PXM_DOMAINS for systems with > 256 nodes

Correctly size the PXM-related arrays for systems that have more than
256 nodes.

Signed-off-by: Jack Steiner <steiner@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>

Showing 1 changed file with 2 additions and 3 deletions Side-by-side Diff

include/asm-ia64/acpi.h
... ... @@ -110,9 +110,8 @@
110 110 extern int additional_cpus;
111 111  
112 112 #ifdef CONFIG_ACPI_NUMA
113   -/* Proximity bitmap length; _PXM is at most 255 (8 bit)*/
114   -#ifdef CONFIG_IA64_NR_NODES
115   -#define MAX_PXM_DOMAINS CONFIG_IA64_NR_NODES
  113 +#if MAX_NUMNODES > 256
  114 +#define MAX_PXM_DOMAINS MAX_NUMNODES
116 115 #else
117 116 #define MAX_PXM_DOMAINS (256)
118 117 #endif