diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-07-02 21:54:40 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-08 07:16:24 -0400 |
commit | 329513a35d1a2b6b28d54f5c2c0dde4face8200b (patch) | |
tree | ef517f954c7dc6e86952e372608bde091b13f803 /arch/x86/kernel/setup_percpu.c | |
parent | 5f4765f96eebee6a0adc4009758b597ba48a0a3a (diff) |
x86: move prefill_possible_map calling early
call it right after we are done with MADT/mptable handling, instead of
doing that in setup_per_cpu_areas() later on...
this way for_possible_cpu() can be used early.
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/setup_percpu.c')
-rw-r--r-- | arch/x86/kernel/setup_percpu.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/x86/kernel/setup_percpu.c b/arch/x86/kernel/setup_percpu.c index 43aca2de624a..5fc310f746fc 100644 --- a/arch/x86/kernel/setup_percpu.c +++ b/arch/x86/kernel/setup_percpu.c | |||
@@ -162,16 +162,6 @@ void __init setup_per_cpu_areas(void) | |||
162 | char *ptr; | 162 | char *ptr; |
163 | int cpu; | 163 | int cpu; |
164 | 164 | ||
165 | /* no processor from mptable or madt */ | ||
166 | if (!num_processors) | ||
167 | num_processors = 1; | ||
168 | |||
169 | #ifdef CONFIG_HOTPLUG_CPU | ||
170 | prefill_possible_map(); | ||
171 | #else | ||
172 | nr_cpu_ids = num_processors; | ||
173 | #endif | ||
174 | |||
175 | /* Setup cpu_pda map */ | 165 | /* Setup cpu_pda map */ |
176 | setup_cpu_pda_map(); | 166 | setup_cpu_pda_map(); |
177 | 167 | ||