[PATCH] x86: typo about sequence of cpu_index and cpu_online in show_cpuinfo

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>, Thomas Gleixner <tglx@...>
Cc: LKML <linux-kernel@...>
Date: Tuesday, October 23, 2007 - 6:07 am

[PATCH] x86: typo about sequence of cpu_index and cpu_online in show_cpuinfo

use the real cpu_index instead of 0.

Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>

diff --git a/arch/x86/kernel/cpu/proc.c b/arch/x86/kernel/cpu/proc.c
index 2d42b41..2196b51 100644
--- a/arch/x86/kernel/cpu/proc.c
+++ b/arch/x86/kernel/cpu/proc.c
@@ -89,9 +89,9 @@ static int show_cpuinfo(struct seq_file *m, void *v)
 	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"
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] x86: typo about sequence of cpu_index and cpu_online..., Yinghai Lu, (Tue Oct 23, 6:07 am)