summaryrefslogtreecommitdiff
path: root/arch/mips/kernel
diff options
context:
space:
mode:
authorSerge Semin <fancer.lancer@gmail.com>2023-12-02 14:14:23 +0300
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2023-12-21 15:33:44 +0100
commitefe8ee1a8b9a89835dcbbec8cebc9d5a27428914 (patch)
tree5c3c51e84a08c1cb2358a8f340e8765c7da269f5 /arch/mips/kernel
parente540b8c5da04c66ff610d3bf84a7566d9f6bffcf (diff)
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>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r--arch/mips/kernel/prom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/kernel/prom.c b/arch/mips/kernel/prom.c
index f88ce78e13e3..6062e6fa589a 100644
--- a/arch/mips/kernel/prom.c
+++ b/arch/mips/kernel/prom.c
@@ -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)