diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-10-11 23:46:17 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-10-11 23:46:17 +0100 |
commit | 9966db25defba4e1dce263246db25237bc24479f (patch) | |
tree | 5002f2849ebcceb57f40535798aa37dfbd841875 /arch/mips/kernel/traps.c | |
parent | 36cfbaad815908f54872a7b471e9a7a09b4084a4 (diff) | |
download | blackbird-op-linux-9966db25defba4e1dce263246db25237bc24479f.tar.gz blackbird-op-linux-9966db25defba4e1dce263246db25237bc24479f.zip |
[MIPS] Make facility to convert CPU types to strings generally available.
So far /proc/cpuinfo has been the only user but human readable processor
name are more useful than that for proc.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/traps.c')
-rw-r--r-- | arch/mips/kernel/traps.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index b3e408b54c24..632bce1bf420 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -295,7 +295,8 @@ void show_regs(struct pt_regs *regs) if (1 <= cause && cause <= 5) printk("BadVA : %0*lx\n", field, regs->cp0_badvaddr); - printk("PrId : %08x\n", read_c0_prid()); + printk("PrId : %08x (%s)\n", read_c0_prid(), + cpu_name_string()); } void show_registers(struct pt_regs *regs) |