aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/topology.h
diff options
context:
space:
mode:
authorMike Travis <travis@sgi.com>2008-04-04 21:11:11 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-19 13:44:59 -0400
commit7c16ec585c558960a508ccf9a08fcb9ed49b3754 (patch)
treecca2b12203a10944d7095a07df7292421f578dc9 /include/asm-x86/topology.h
parentc5f59f0833df945eef7ff35f3dc6ba61c5f293dd (diff)
cpumask: reduce stack usage in SD_x_INIT initializers
* Remove empty cpumask_t (and all non-zero/non-null) variables in SD_*_INIT macros. Use memset(0) to clear. Also, don't inline the initializer functions to save on stack space in build_sched_domains(). * Merge change to include/linux/topology.h that uses the new node_to_cpumask_ptr function in the nr_cpus_node macro into this patch. Depends on: [mm-patch]: asm-generic-add-node_to_cpumask_ptr-macro.patch [sched-devel]: sched: add new set_cpus_allowed_ptr function Cc: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Mike Travis <travis@sgi.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/topology.h')
-rw-r--r--include/asm-x86/topology.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/asm-x86/topology.h b/include/asm-x86/topology.h
index b167ca90f96f..9ef74c5d5ad6 100644
--- a/include/asm-x86/topology.h
+++ b/include/asm-x86/topology.h
@@ -154,10 +154,6 @@ extern unsigned long node_remap_size[];
154 154
155/* sched_domains SD_NODE_INIT for NUMAQ machines */ 155/* sched_domains SD_NODE_INIT for NUMAQ machines */
156#define SD_NODE_INIT (struct sched_domain) { \ 156#define SD_NODE_INIT (struct sched_domain) { \
157 .span = CPU_MASK_NONE, \
158 .parent = NULL, \
159 .child = NULL, \
160 .groups = NULL, \
161 .min_interval = 8, \ 157 .min_interval = 8, \
162 .max_interval = 32, \ 158 .max_interval = 32, \
163 .busy_factor = 32, \ 159 .busy_factor = 32, \
@@ -175,7 +171,6 @@ extern unsigned long node_remap_size[];
175 | SD_WAKE_BALANCE, \ 171 | SD_WAKE_BALANCE, \
176 .last_balance = jiffies, \ 172 .last_balance = jiffies, \
177 .balance_interval = 1, \ 173 .balance_interval = 1, \
178 .nr_balance_failed = 0, \
179} 174}
180 175
181#ifdef CONFIG_X86_64_ACPI_NUMA 176#ifdef CONFIG_X86_64_ACPI_NUMA