projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b8f386
)
MIPS: show_cpuinfo prints the type of the calling CPU
author
Johannes Dickgreber
<tanzy@gmx.de>
Mon, 13 Oct 2008 17:36:21 +0000
(19:36 +0200)
committer
Ralf Baechle
<ralf@linux-mips.org>
Wed, 15 Oct 2008 11:46:50 +0000
(12:46 +0100)
It should print the type of the Nth processor.
Signed-off-by: Johannes Dickgreber <tanzy@gmx.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/proc.c
patch
|
blob
|
history
diff --git
a/arch/mips/kernel/proc.c
b/arch/mips/kernel/proc.c
index
75bb130
..
26760ca
100644
(file)
--- 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",