summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/setup.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2014-10-28 13:40:26 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2014-11-21 16:24:59 +0100
commit719c9d1489bad6ff26fa1f6a7e3f760935663398 (patch)
treeb1b478ae3140d51aee6e655130bac11881dd8edf /arch/arm/kernel/setup.c
parentARM: remove "SMP: Total of %d processors activated." message (diff)
downloadlinux-719c9d1489bad6ff26fa1f6a7e3f760935663398.tar.xz
linux-719c9d1489bad6ff26fa1f6a7e3f760935663398.zip
ARM: add machine name to stack dump output
The generic dump_stack() code provides the facility to include the machine name in the stack dump, which can be useful information. Add a call to dump_stack_set_arch_desc() for the generic code to print this information. Tested-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/setup.c')
-rw-r--r--arch/arm/kernel/setup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index c03106378b49..8361652b6dab 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -900,6 +900,7 @@ void __init setup_arch(char **cmdline_p)
mdesc = setup_machine_tags(__atags_pointer, __machine_arch_type);
machine_desc = mdesc;
machine_name = mdesc->name;
+ dump_stack_set_arch_desc("%s", mdesc->name);
if (mdesc->reboot_mode != REBOOT_HARD)
reboot_mode = mdesc->reboot_mode;