[IA64] Zonelists for nodes without cpus
authorJack Steiner <steiner@sgi.com>
Tue, 17 Jan 2006 21:42:46 +0000 (15:42 -0600)
committerTony Luck <tony.luck@intel.com>
Tue, 17 Jan 2006 21:55:46 +0000 (13:55 -0800)
If a node runs out of memory, ensure that memory on nodes w/o cpus is used
before using memory on nodes with cpus.

Signed-off-by: Jack Steiner <steiner@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
include/asm-ia64/topology.h

index d8aae4da3978945adae91064c3ebbe8d0b29f01b..412ef8e493a8cc2644ad79294f9907ddd8e4566c 100644 (file)
 #include <asm/smp.h>
 
 #ifdef CONFIG_NUMA
+
+/* Nodes w/o CPUs are preferred for memory allocations, see build_zonelists */
+#define PENALTY_FOR_NODE_WITH_CPUS 255
+
 /*
  * Returns the number of the node containing CPU 'cpu'
  */