aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/head64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/head64.c')
-rw-r--r--arch/x86/kernel/head64.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c
index 0ab59edd7067..4bcb61cd9fcd 100644
--- a/arch/x86/kernel/head64.c
+++ b/arch/x86/kernel/head64.c
@@ -29,17 +29,13 @@
29static struct x8664_pda _boot_cpu_pda __read_mostly; 29static struct x8664_pda _boot_cpu_pda __read_mostly;
30 30
31#ifdef CONFIG_SMP 31#ifdef CONFIG_SMP
32#ifdef CONFIG_DEBUG_PER_CPU_MAPS
33/* 32/*
34 * We install an empty cpu_pda pointer table to trap references before 33 * We install an empty cpu_pda pointer table to indicate to early users
35 * the actual cpu_pda pointer table is created in setup_cpu_pda_map(). 34 * (numa_set_node) that the cpu_pda pointer table for cpus other than
35 * the boot cpu is not yet setup.
36 */ 36 */
37static struct x8664_pda *__cpu_pda[NR_CPUS] __initdata; 37static struct x8664_pda *__cpu_pda[NR_CPUS] __initdata;
38#else 38#else
39static struct x8664_pda *__cpu_pda[1] __read_mostly;
40#endif
41
42#else /* !CONFIG_SMP (NR_CPUS will be 1) */
43static struct x8664_pda *__cpu_pda[NR_CPUS] __read_mostly; 39static struct x8664_pda *__cpu_pda[NR_CPUS] __read_mostly;
44#endif 40#endif
45 41