aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/common.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-10-30 19:43:03 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-30 19:43:03 -0400
commit1c4acdb467f8a6704855a5670ff3d82e3c18eb0b (patch)
tree909d62ba0ab06acd8d5068e34a7b214e21b27529 /arch/x86/kernel/cpu/common.c
parentbfcb4c1becf93b1592f4a03a4d6e00a3ab89d5ec (diff)
x86: cpu_index build fix
fix: arch/x86/kernel/cpu/common.c: In function 'early_identify_cpu': arch/x86/kernel/cpu/common.c:553: error: 'struct cpuinfo_x86' has no member named 'cpu_index' as cpu_index is only available on SMP. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/cpu/common.c')
-rw-r--r--arch/x86/kernel/cpu/common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
index da8f15ac7a6d..003a65395bd5 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -550,7 +550,9 @@ static void __init early_identify_cpu(struct cpuinfo_x86 *c)
550 550
551 validate_pat_support(c); 551 validate_pat_support(c);
552 552
553#ifdef CONFIG_SMP
553 c->cpu_index = boot_cpu_id; 554 c->cpu_index = boot_cpu_id;
555#endif
554} 556}
555 557
556void __init early_cpu_init(void) 558void __init early_cpu_init(void)