aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/setup.c4
-rw-r--r--arch/x86/kernel/smpboot.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index dc7940955b7a..01119d9b013e 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -9,6 +9,10 @@
9#include <asm/processor.h> 9#include <asm/processor.h>
10#include <asm/setup.h> 10#include <asm/setup.h>
11#include <asm/topology.h> 11#include <asm/topology.h>
12#include <asm/apicdef.h>
13
14DEFINE_PER_CPU(u16, x86_cpu_to_apicid) = BAD_APICID;
15EXPORT_PER_CPU_SYMBOL(x86_cpu_to_apicid);
12 16
13#if defined(CONFIG_HAVE_SETUP_PER_CPU_AREA) && defined(CONFIG_SMP) 17#if defined(CONFIG_HAVE_SETUP_PER_CPU_AREA) && defined(CONFIG_SMP)
14/* 18/*
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index 22bf6c29454f..412061a0bf2b 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -77,8 +77,6 @@
77u16 x86_cpu_to_apicid_init[NR_CPUS] __initdata = 77u16 x86_cpu_to_apicid_init[NR_CPUS] __initdata =
78 { [0 ... NR_CPUS-1] = BAD_APICID }; 78 { [0 ... NR_CPUS-1] = BAD_APICID };
79void *x86_cpu_to_apicid_early_ptr; 79void *x86_cpu_to_apicid_early_ptr;
80DEFINE_PER_CPU(u16, x86_cpu_to_apicid) = BAD_APICID;
81EXPORT_PER_CPU_SYMBOL(x86_cpu_to_apicid);
82 80
83u16 x86_bios_cpu_apicid_init[NR_CPUS] __initdata 81u16 x86_bios_cpu_apicid_init[NR_CPUS] __initdata
84 = { [0 ... NR_CPUS-1] = BAD_APICID }; 82 = { [0 ... NR_CPUS-1] = BAD_APICID };