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 /include | |
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 'include')
-rw-r--r-- | include/asm-x86/smp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-x86/smp.h b/include/asm-x86/smp.h index fad45f6a193f..b324a0645a78 100644 --- a/include/asm-x86/smp.h +++ b/include/asm-x86/smp.h | |||
@@ -119,6 +119,10 @@ static inline int num_booting_cpus(void) | |||
119 | { | 119 | { |
120 | return cpus_weight(cpu_callout_map); | 120 | return cpus_weight(cpu_callout_map); |
121 | } | 121 | } |
122 | #else | ||
123 | static inline void prefill_possible_map(void) | ||
124 | { | ||
125 | } | ||
122 | #endif /* CONFIG_SMP */ | 126 | #endif /* CONFIG_SMP */ |
123 | 127 | ||
124 | extern unsigned disabled_cpus __cpuinitdata; | 128 | extern unsigned disabled_cpus __cpuinitdata; |