[ARM] always allow dump_stack() to produce a backtrace
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Thu, 5 Jul 2007 18:59:51 +0000 (19:59 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 5 Jul 2007 18:59:51 +0000 (19:59 +0100)
Don't make this dependent on CONFIG_DEBUG_KERNEL - if we hit a WARN_ON
we need the stack trace to work out how we got to that point.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/traps.c

index 1b68d365d0e1e52887693122a344ec335219942f..237f4999b9a167688730220bed88f4f38a3e0385 100644 (file)
@@ -181,9 +181,7 @@ static void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk)
 
 void dump_stack(void)
 {
-#ifdef CONFIG_DEBUG_ERRORS
        __backtrace();
-#endif
 }
 
 EXPORT_SYMBOL(dump_stack);