From: Johannes Dickgreber Date: Mon, 13 Oct 2008 17:36:21 +0000 (+0200) Subject: MIPS: show_cpuinfo prints the type of the calling CPU X-Git-Tag: v2.6.28-rc1~564^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e47c659b55aff703a2a28e8bd01ee64948eeb417;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git MIPS: show_cpuinfo prints the type of the calling CPU It should print the type of the Nth processor. Signed-off-by: Johannes Dickgreber Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/kernel/proc.c b/arch/mips/kernel/proc.c index 75bb130..26760ca 100644 --- a/arch/mips/kernel/proc.c +++ b/arch/mips/kernel/proc.c @@ -39,7 +39,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",