提交 e47c659b 编写于 作者: J Johannes Dickgreber 提交者: Ralf Baechle

MIPS: show_cpuinfo prints the type of the calling CPU

It should print the type of the Nth processor.
Signed-off-by: NJohannes Dickgreber <tanzy@gmx.de>
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册