[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>
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user