| To: | ralf@linux-mips.org |
|---|---|
| Subject: | [PATCH 2/2] show_cpuinfo prints the name of the calling CPU, which i think is wrong. |
| From: | Johannes Dickgreber <tanzy@gmx.de> |
| Date: | Mon, 13 Oct 2008 19:36:21 +0200 |
| Cc: | linux-mips@linux-mips.org |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
Signed-off-by: Johannes Dickgreber <tanzy@gmx.de>
---
arch/mips/kernel/proc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/mips/kernel/proc.c b/arch/mips/kernel/proc.c
index 9d60679..8897c53 100644
--- a/arch/mips/kernel/proc.c
+++ b/arch/mips/kernel/proc.c
@@ -38,7 +38,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
seq_printf(m, "processor\t\t: %ld\n", n);
sprintf(fmt, "cpu model\t\t: %%s V%%d.%%d%s\n",
cpu_data[n].options & MIPS_CPU_FPU ? " FPU V%d.%d" : "");
- seq_printf(m, fmt, __cpu_name[smp_processor_id()],
+ seq_printf(m, fmt, __cpu_name[n],
(version >> 4) & 0x0f, version & 0x0f,
(fp_vers >> 4) & 0x0f, fp_vers & 0x0f);
seq_printf(m, "BogoMIPS\t\t: %lu.%02lu\n",
--
1.6.0.2
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [Fwd: [bug report] 0xffffffffc0000000 can't be used on bcm1250], Ralf Baechle |
|---|---|
| Next by Date: | [PATCH] MIPS: Rewrite cpu_to_name so it has one statement per line., David Daney |
| Previous by Thread: | Re: [Fwd: [bug report] 0xffffffffc0000000 can't be used on bcm1250], Ralf Baechle |
| Next by Thread: | Re: [PATCH 2/2] show_cpuinfo prints the name of the calling CPU, which i think is wrong., Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |