projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d171e51
)
[IA64] Zonelists for nodes without cpus
author
Jack Steiner
<steiner@sgi.com>
Tue, 17 Jan 2006 21:42:46 +0000
(15:42 -0600)
committer
Tony 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
patch
|
blob
|
history
diff --git
a/include/asm-ia64/topology.h
b/include/asm-ia64/topology.h
index d8aae4da3978945adae91064c3ebbe8d0b29f01b..412ef8e493a8cc2644ad79294f9907ddd8e4566c 100644
(file)
--- a/
include/asm-ia64/topology.h
+++ b/
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'
*/