Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 590e4d85 authored by Anton Blanchard's avatar Anton Blanchard Committed by Benjamin Herrenschmidt
Browse files

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: default avatarAnton Blanchard <anton@samba.org>
Acked-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent a200d8e4
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -201,6 +201,10 @@ int arch_update_cpu_topology(void);
	.balance_interval	= 64,					\
	.balance_interval	= 64,					\
}
}


#ifndef SD_NODES_PER_DOMAIN
#define SD_NODES_PER_DOMAIN 16
#endif

#ifdef CONFIG_SCHED_BOOK
#ifdef CONFIG_SCHED_BOOK
#ifndef SD_BOOK_INIT
#ifndef SD_BOOK_INIT
#error Please define an appropriate SD_BOOK_INIT in include/asm/topology.h!!!
#error Please define an appropriate SD_BOOK_INIT in include/asm/topology.h!!!
+0 −2
Original line number Original line Diff line number Diff line
@@ -6947,8 +6947,6 @@ static int __init isolated_cpu_setup(char *str)


__setup("isolcpus=", isolated_cpu_setup);
__setup("isolcpus=", isolated_cpu_setup);


#define SD_NODES_PER_DOMAIN 16

#ifdef CONFIG_NUMA
#ifdef CONFIG_NUMA


/**
/**