sched: Allow SD_NODES_PER_DOMAIN to be overridden
authorAnton Blanchard <anton@samba.org>
Sun, 24 Jul 2011 16:33:13 +0000 (16:33 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 20 Sep 2011 05:53:21 +0000 (15:53 +1000)
We want to override the default value of SD_NODES_PER_DOMAIN on ppc64,
so move it into linux/topology.h.

Signed-off-by: Anton Blanchard <anton@samba.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
include/linux/topology.h
kernel/sched.c

index fc839bfa7935aff66380a22e9b95589127ec66d2..e26db031303b69cee9954780f3ce3f8d276d8644 100644 (file)
@@ -201,6 +201,10 @@ int arch_update_cpu_topology(void);
        .balance_interval       = 64,                                   \
 }
 
+#ifndef SD_NODES_PER_DOMAIN
+#define SD_NODES_PER_DOMAIN 16
+#endif
+
 #ifdef CONFIG_SCHED_BOOK
 #ifndef SD_BOOK_INIT
 #error Please define an appropriate SD_BOOK_INIT in include/asm/topology.h!!!
index ec5f472bc5b9cec2a5c43ab7f8a054ecca75b39a..d258b2d9a66d0ef9b5c480d0aa64c6bdc8b6513b 100644 (file)
@@ -6947,8 +6947,6 @@ static int __init isolated_cpu_setup(char *str)
 
 __setup("isolcpus=", isolated_cpu_setup);
 
-#define SD_NODES_PER_DOMAIN 16
-
 #ifdef CONFIG_NUMA
 
 /**