diff options
| author | Jack Steiner <steiner@sgi.com> | 2006-01-17 16:42:46 -0500 |
|---|---|---|
| committer | Tony Luck <tony.luck@intel.com> | 2006-01-17 16:55:46 -0500 |
| commit | 8d08aed8d7714683b33666cc066e20f957dda01d (patch) | |
| tree | 31b8a773a09575f94adce8e00c52fb0010bd5a5f | |
| parent | d171e519da635a82ab759cbfd46617ac160c9ec0 (diff) | |
[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>
| -rw-r--r-- | include/asm-ia64/topology.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-ia64/topology.h b/include/asm-ia64/topology.h index d8aae4da3978..412ef8e493a8 100644 --- a/include/asm-ia64/topology.h +++ b/include/asm-ia64/topology.h | |||
| @@ -18,6 +18,10 @@ | |||
| 18 | #include <asm/smp.h> | 18 | #include <asm/smp.h> |
| 19 | 19 | ||
| 20 | #ifdef CONFIG_NUMA | 20 | #ifdef CONFIG_NUMA |
| 21 | |||
| 22 | /* Nodes w/o CPUs are preferred for memory allocations, see build_zonelists */ | ||
| 23 | #define PENALTY_FOR_NODE_WITH_CPUS 255 | ||
| 24 | |||
| 21 | /* | 25 | /* |
| 22 | * Returns the number of the node containing CPU 'cpu' | 26 | * Returns the number of the node containing CPU 'cpu' |
| 23 | */ | 27 | */ |
