浏览代码

[IA64] Zonelists for nodes without cpus

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>
Jack Steiner 19 年之前
父节点
当前提交
8d08aed8d7
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      include/asm-ia64/topology.h

+ 4 - 0
include/asm-ia64/topology.h

@@ -18,6 +18,10 @@
 #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'
  */