Commit e47c659b authored by Johannes Dickgreber's avatar Johannes Dickgreber Committed by Ralf Baechle

MIPS: show_cpuinfo prints the type of the calling CPU

It should print the type of the Nth processor.
Signed-off-by: default avatarJohannes Dickgreber <tanzy@gmx.de>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 9b8f3863
......@@ -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",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment