#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/sched.h>
-#include <asm/processor.h>
-#include <asm/atomic.h>
-
-#ifdef CONFIG_SMP
#include <linux/smp.h>
-#endif
+#include <linux/atomic.h>
+
+static void __dump_stack(void)
+{
+ dump_stack_print_info(KERN_DEFAULT);
+ show_stack(NULL, NULL);
+}
/**
* dump_stack - dump the current task information and its stack trace
int old;
int cpu;
- /*
- * Permit this cpu to perform nested stack dumps while serialising
- * against other CPUs
- */
+ /*
+ * Permit this cpu to perform nested stack dumps while serialising
+ * against other CPUs
+ */
preempt_disable();
retry:
}
#endif
EXPORT_SYMBOL(dump_stack);
-
-static void __dump_stack(void)
-{
- dump_stack_print_info(KERN_DEFAULT);
- show_stack(NULL, NULL);
-}