]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
um: Make kstack_depth_to_print conform to arch/x86
authorRichard Weinberger <richard@nod.at>
Mon, 23 Sep 2013 15:38:04 +0000 (17:38 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 17 Nov 2013 10:27:40 +0000 (11:27 +0100)
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/kernel/sysrq.c

index 7122bf9c753e52c8acc073ba3b7494dbf9f28bdd..4d6fdf68edf31cf31b993081a6d9432dff6e3c5b 100644 (file)
@@ -46,9 +46,6 @@ static void print_stack_trace(unsigned long *sp, unsigned long bp)
        printk(KERN_INFO "\n");
 }
 
-/*Stolen from arch/i386/kernel/traps.c */
-static const int kstack_depth_to_print = 24;
-
 static unsigned long get_frame_pointer(struct task_struct *task,
                                       struct pt_regs *segv_regs)
 {
@@ -88,7 +85,7 @@ void show_stack(struct task_struct *task, unsigned long *stack)
 
        printk(KERN_INFO "Stack:\n");
        stack = sp;
-       for (i = 0; i < kstack_depth_to_print; i++) {
+       for (i = 0; i < 3 * STACKSLOTS_PER_LINE; i++) {
                if (kstack_end(stack))
                        break;
                if (i && ((i % STACKSLOTS_PER_LINE) == 0))