Skip to content

Commit

Permalink
MIPS: show_cpuinfo prints the type of the calling CPU
Browse files Browse the repository at this point in the history
It should print the type of the Nth processor.

Signed-off-by: Johannes Dickgreber <[email protected]>
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
Johannes Dickgreber authored and ralfbaechle committed Oct 15, 2008
1 parent 9b8f386 commit e47c659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/kernel/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e47c659

Please sign in to comment.