ARM: add machine name to stack dump output
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 28 Oct 2014 12:40:26 +0000 (12:40 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 21 Nov 2014 15:24:59 +0000 (15:24 +0000)
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>
arch/arm/kernel/setup.c

index c031063..8361652 100644 (file)
@@ -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;