Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sched: Allow SD_NODES_PER_DOMAIN to be overridden

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>

authored by

Anton Blanchard and committed by
Benjamin Herrenschmidt
590e4d85 a200d8e4

+4 -2
+4
include/linux/topology.h
··· 201 201 .balance_interval = 64, \ 202 202 } 203 203 204 + #ifndef SD_NODES_PER_DOMAIN 205 + #define SD_NODES_PER_DOMAIN 16 206 + #endif 207 + 204 208 #ifdef CONFIG_SCHED_BOOK 205 209 #ifndef SD_BOOK_INIT 206 210 #error Please define an appropriate SD_BOOK_INIT in include/asm/topology.h!!!
-2
kernel/sched.c
··· 6947 6947 6948 6948 __setup("isolcpus=", isolated_cpu_setup); 6949 6949 6950 - #define SD_NODES_PER_DOMAIN 16 6951 - 6952 6950 #ifdef CONFIG_NUMA 6953 6951 6954 6952 /**