aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/setup_percpu.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/arch/x86/kernel/setup_percpu.c b/arch/x86/kernel/setup_percpu.c
index 1cd53dfcd309..76e305e064f9 100644
--- a/arch/x86/kernel/setup_percpu.c
+++ b/arch/x86/kernel/setup_percpu.c
@@ -80,26 +80,6 @@ static void __init setup_per_cpu_maps(void)
80#endif 80#endif
81} 81}
82 82
83#ifdef CONFIG_HAVE_CPUMASK_OF_CPU_MAP
84/*
85 * Replace static cpumask_of_cpu_map in the initdata section,
86 * with one that's allocated sized by the possible number of cpus.
87 *
88 * (requires nr_cpu_ids to be initialized)
89 */
90static void __init setup_cpumask_of_cpu(void)
91{
92 int i;
93
94 /* alloc_bootmem zeroes memory */
95 cpumask_of_cpu_map = alloc_bootmem_low(sizeof(cpumask_t) * nr_cpu_ids);
96 for (i = 0; i < nr_cpu_ids; i++)
97 cpu_set(i, cpumask_of_cpu_map[i]);
98}
99#else
100static inline void setup_cpumask_of_cpu(void) { }
101#endif
102
103#ifdef CONFIG_X86_32 83#ifdef CONFIG_X86_32
104/* 84/*
105 * Great future not-so-futuristic plan: make i386 and x86_64 do it 85 * Great future not-so-futuristic plan: make i386 and x86_64 do it
@@ -199,9 +179,6 @@ void __init setup_per_cpu_areas(void)
199 179
200 /* Setup node to cpumask map */ 180 /* Setup node to cpumask map */
201 setup_node_to_cpumask_map(); 181 setup_node_to_cpumask_map();
202
203 /* Setup cpumask_of_cpu map */
204 setup_cpumask_of_cpu();
205} 182}
206 183
207#endif 184#endif