diff options
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
-rw-r--r-- | arch/x86/kernel/smpboot.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 53a85baaecca..df934e46bf53 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -165,9 +165,6 @@ static void unmap_cpu_to_node(int cpu) | |||
165 | #endif | 165 | #endif |
166 | 166 | ||
167 | #ifdef CONFIG_X86_32 | 167 | #ifdef CONFIG_X86_32 |
168 | u8 cpu_2_logical_apicid[NR_CPUS] __read_mostly = | ||
169 | { [0 ... NR_CPUS-1] = BAD_APICID }; | ||
170 | |||
171 | static void map_cpu_to_logical_apicid(void) | 168 | static void map_cpu_to_logical_apicid(void) |
172 | { | 169 | { |
173 | int cpu = smp_processor_id(); | 170 | int cpu = smp_processor_id(); |
@@ -177,13 +174,13 @@ static void map_cpu_to_logical_apicid(void) | |||
177 | if (!node_online(node)) | 174 | if (!node_online(node)) |
178 | node = first_online_node; | 175 | node = first_online_node; |
179 | 176 | ||
180 | cpu_2_logical_apicid[cpu] = apicid; | 177 | early_per_cpu(x86_cpu_to_logical_apicid, cpu) = apicid; |
181 | map_cpu_to_node(cpu, node); | 178 | map_cpu_to_node(cpu, node); |
182 | } | 179 | } |
183 | 180 | ||
184 | void numa_remove_cpu(int cpu) | 181 | void numa_remove_cpu(int cpu) |
185 | { | 182 | { |
186 | cpu_2_logical_apicid[cpu] = BAD_APICID; | 183 | early_per_cpu(x86_cpu_to_logical_apicid, cpu) = BAD_APICID; |
187 | unmap_cpu_to_node(cpu); | 184 | unmap_cpu_to_node(cpu); |
188 | } | 185 | } |
189 | #else | 186 | #else |