aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2013-09-23 11:38:04 -0400
committerRichard Weinberger <richard@nod.at>2013-11-17 05:27:40 -0500
commite96d1c3695d6f5fde010d27e2a245a6656de688c (patch)
treee584597c3b3af3b9440f07035c6cf207f24097c6 /arch
parenta1850e9c7282db1c19a18093a945d5e84bfe7418 (diff)
um: Make kstack_depth_to_print conform to arch/x86
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch')
-rw-r--r--arch/um/kernel/sysrq.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/um/kernel/sysrq.c b/arch/um/kernel/sysrq.c
index 7122bf9c753e..4d6fdf68edf3 100644
--- a/arch/um/kernel/sysrq.c
+++ b/arch/um/kernel/sysrq.c
@@ -46,9 +46,6 @@ static void print_stack_trace(unsigned long *sp, unsigned long bp)
46 printk(KERN_INFO "\n"); 46 printk(KERN_INFO "\n");
47} 47}
48 48
49/*Stolen from arch/i386/kernel/traps.c */
50static const int kstack_depth_to_print = 24;
51
52static unsigned long get_frame_pointer(struct task_struct *task, 49static unsigned long get_frame_pointer(struct task_struct *task,
53 struct pt_regs *segv_regs) 50 struct pt_regs *segv_regs)
54{ 51{
@@ -88,7 +85,7 @@ void show_stack(struct task_struct *task, unsigned long *stack)
88 85
89 printk(KERN_INFO "Stack:\n"); 86 printk(KERN_INFO "Stack:\n");
90 stack = sp; 87 stack = sp;
91 for (i = 0; i < kstack_depth_to_print; i++) { 88 for (i = 0; i < 3 * STACKSLOTS_PER_LINE; i++) {
92 if (kstack_end(stack)) 89 if (kstack_end(stack))
93 break; 90 break;
94 if (i && ((i % STACKSLOTS_PER_LINE) == 0)) 91 if (i && ((i % STACKSLOTS_PER_LINE) == 0))