From: Ingo Molnar Date: Thu, 30 Oct 2008 23:43:03 +0000 (+0100) Subject: x86: cpu_index build fix X-Git-Tag: v2.6.28-rc3~29^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1c4acdb467f8a6704855a5670ff3d82e3c18eb0b;p=linux-2.6-omap-h63xx.git 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 --- diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index da8f15ac7a6..003a65395bd 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) validate_pat_support(c); +#ifdef CONFIG_SMP c->cpu_index = boot_cpu_id; +#endif } void __init early_cpu_init(void)