Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Jack Steiner and committed by
Tony Luck
0d9adec5 308a8782

+2 -3
+2 -3
include/asm-ia64/acpi.h
··· 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