From: Yinghai Lu Use the real cpu_index instead of 0. Signed-off-by: Yinghai Lu Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Andi Kleen Signed-off-by: Andrew Morton --- arch/x86/kernel/cpu/proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN arch/x86/kernel/cpu/proc.c~x86-typo-about-sequence-of-cpu_index-and-cpu_online-in arch/x86/kernel/cpu/proc.c --- a/arch/x86/kernel/cpu/proc.c~x86-typo-about-sequence-of-cpu_index-and-cpu_online-in +++ a/arch/x86/kernel/cpu/proc.c @@ -89,9 +89,9 @@ static int show_cpuinfo(struct seq_file int fpu_exception; #ifdef CONFIG_SMP + n = c->cpu_index; if (!cpu_online(n)) return 0; - n = c->cpu_index; #endif seq_printf(m, "processor\t: %d\n" "vendor_id\t: %s\n" _