aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/topology.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2009-03-13 00:19:53 -0400
committerRusty Russell <rusty@rustcorp.com.au>2009-03-13 00:19:53 -0400
commitc032ef60d1aa9af33730b7a35bbea751b131adc1 (patch)
tree3c3a274c92d29383f1d6b07ab098666d3525a251 /arch/x86/include/asm/topology.h
parent71ee73e72228775a076a502b3c92028fa59e2889 (diff)
cpumask: convert node_to_cpumask_map[] to cpumask_var_t
Impact: reduce kernel memory usage when CONFIG_CPUMASK_OFFSTACK=y Straightforward conversion: done for 32 and 64 bit kernels. node_to_cpumask_map is now a cpumask_var_t array. 64-bit used to be a dynamic cpumask_t array, and 32-bit used to be a static cpumask_t array. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'arch/x86/include/asm/topology.h')
-rw-r--r--arch/x86/include/asm/topology.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/include/asm/topology.h b/arch/x86/include/asm/topology.h
index dc31d929da04..f8b833e1257f 100644
--- a/arch/x86/include/asm/topology.h
+++ b/arch/x86/include/asm/topology.h
@@ -86,15 +86,15 @@ static inline int early_cpu_to_node(int cpu)
86#endif /* CONFIG_X86_64 */ 86#endif /* CONFIG_X86_64 */
87 87
88/* Mappings between node number and cpus on that node. */ 88/* Mappings between node number and cpus on that node. */
89extern cpumask_t *node_to_cpumask_map; 89extern cpumask_var_t node_to_cpumask_map[MAX_NUMNODES];
90 90
91#ifdef CONFIG_DEBUG_PER_CPU_MAPS 91#ifdef CONFIG_DEBUG_PER_CPU_MAPS
92extern const cpumask_t *cpumask_of_node(int node); 92extern const cpumask_t *cpumask_of_node(int node);
93#else 93#else
94/* Returns a pointer to the cpumask of CPUs on Node 'node'. */ 94/* Returns a pointer to the cpumask of CPUs on Node 'node'. */
95static inline const cpumask_t *cpumask_of_node(int node) 95static inline const struct cpumask *cpumask_of_node(int node)
96{ 96{
97 return &node_to_cpumask_map[node]; 97 return node_to_cpumask_map[node];
98} 98}
99#endif 99#endif
100 100