diff options
author | Anton Blanchard <anton@samba.org> | 2011-07-24 12:33:14 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-09-20 01:53:22 -0400 |
commit | d4761ad2ef18ec2c9a0037d6649c0afc4a7b907d (patch) | |
tree | 508fc064de4a624fe411a6d798c5e74d7b94e433 /arch/powerpc/include/asm | |
parent | 590e4d857153c5d4cf86052cdfd42cf9b0779841 (diff) |
powerpc/numa: Increase SD_NODES_PER_DOMAIN to 32.
The largest POWER7 boxes have 32 nodes. SD_NODES_PER_DOMAIN groups
nodes into chunks of 16 and adds a global balancing domain
(SD_ALLNODES) above it.
If we bump SD_NODES_PER_DOMAIN to 32, then we avoid this extra
level of balancing on our largest boxes.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm')
-rw-r--r-- | arch/powerpc/include/asm/topology.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/topology.h b/arch/powerpc/include/asm/topology.h index 6a7e7251cc02..d1c1d312f808 100644 --- a/arch/powerpc/include/asm/topology.h +++ b/arch/powerpc/include/asm/topology.h | |||
@@ -28,6 +28,12 @@ struct device_node; | |||
28 | */ | 28 | */ |
29 | #define RECLAIM_DISTANCE 10 | 29 | #define RECLAIM_DISTANCE 10 |
30 | 30 | ||
31 | /* | ||
32 | * Avoid creating an extra level of balancing (SD_ALLNODES) on the largest | ||
33 | * POWER7 boxes which have a maximum of 32 nodes. | ||
34 | */ | ||
35 | #define SD_NODES_PER_DOMAIN 32 | ||
36 | |||
31 | #include <asm/mmzone.h> | 37 | #include <asm/mmzone.h> |
32 | 38 | ||
33 | static inline int cpu_to_node(int cpu) | 39 | static inline int cpu_to_node(int cpu) |