diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-07-03 09:57:47 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-08 07:16:25 -0400 |
commit | 4a7017370aa0a94a00ae5b5705e9169cdcae5fb8 (patch) | |
tree | 125e38c82c2279e860ced4985c7aeaa97e3e95c2 /include | |
parent | 329513a35d1a2b6b28d54f5c2c0dde4face8200b (diff) |
x86: move prefill_possible_map calling early, fix
fix:
arch/x86/kernel/built-in.o: In function `setup_arch':
: undefined reference to `prefill_possible_map'
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/smp.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/asm-x86/smp.h b/include/asm-x86/smp.h index b324a0645a78..2e221f1ce0b2 100644 --- a/include/asm-x86/smp.h +++ b/include/asm-x86/smp.h | |||
@@ -109,8 +109,6 @@ int native_cpu_up(unsigned int cpunum); | |||
109 | extern int __cpu_disable(void); | 109 | extern int __cpu_disable(void); |
110 | extern void __cpu_die(unsigned int cpu); | 110 | extern void __cpu_die(unsigned int cpu); |
111 | 111 | ||
112 | extern void prefill_possible_map(void); | ||
113 | |||
114 | void smp_store_cpu_info(int id); | 112 | void smp_store_cpu_info(int id); |
115 | #define cpu_physical_id(cpu) per_cpu(x86_cpu_to_apicid, cpu) | 113 | #define cpu_physical_id(cpu) per_cpu(x86_cpu_to_apicid, cpu) |
116 | 114 | ||
@@ -119,11 +117,15 @@ static inline int num_booting_cpus(void) | |||
119 | { | 117 | { |
120 | return cpus_weight(cpu_callout_map); | 118 | return cpus_weight(cpu_callout_map); |
121 | } | 119 | } |
120 | #endif /* CONFIG_SMP */ | ||
121 | |||
122 | #if defined(CONFIG_SMP) && defined(CONFIG_HOTPLUG_CPU) | ||
123 | extern void prefill_possible_map(void); | ||
122 | #else | 124 | #else |
123 | static inline void prefill_possible_map(void) | 125 | static inline void prefill_possible_map(void) |
124 | { | 126 | { |
125 | } | 127 | } |
126 | #endif /* CONFIG_SMP */ | 128 | #endif |
127 | 129 | ||
128 | extern unsigned disabled_cpus __cpuinitdata; | 130 | extern unsigned disabled_cpus __cpuinitdata; |
129 | 131 | ||