linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86: typo about sequence of cpu_index and cpu_online in show_cpuinfo
@ 2007-10-23 10:07 Yinghai Lu
  0 siblings, 0 replies; only message in thread
From: Yinghai Lu @ 2007-10-23 10:07 UTC (permalink / raw)
  To: Andrew Morton, Thomas Gleixner; +Cc: LKML

[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"

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-10-23 10:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-23 10:07 [PATCH] x86: typo about sequence of cpu_index and cpu_online in show_cpuinfo Yinghai Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).