mirror of
https://github.com/torvalds/linux
synced 2024-10-06 19:34:19 +00:00
mips: Set dump-stack arch description
In the framework of the MIPS architecture the mips_set_machine_name() method is defined to set the machine name. The name currently is only used in the /proc/cpuinfo file content generation. Let's have it utilized to mach-personalize the dump-stack data too in a way it's done on ARM, ARM64, RISC-V, etc. Signed-off-by: Serge Semin <fancer.lancer@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
parent
e540b8c5da
commit
efe8ee1a8b
|
@ -28,6 +28,8 @@ __init void mips_set_machine_name(const char *name)
|
|||
|
||||
strscpy(mips_machine_name, name, sizeof(mips_machine_name));
|
||||
pr_info("MIPS: machine is %s\n", mips_get_machine_name());
|
||||
|
||||
dump_stack_set_arch_desc(name);
|
||||
}
|
||||
|
||||
char *mips_get_machine_name(void)
|
||||
|
|
Loading…
Reference in a new issue