diff options
author | Richard Weinberger <richard@nod.at> | 2013-09-23 11:38:04 -0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2013-11-17 05:27:40 -0500 |
commit | e96d1c3695d6f5fde010d27e2a245a6656de688c (patch) | |
tree | e584597c3b3af3b9440f07035c6cf207f24097c6 /arch | |
parent | a1850e9c7282db1c19a18093a945d5e84bfe7418 (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.c | 5 |
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 */ | ||
50 | static const int kstack_depth_to_print = 24; | ||
51 | |||
52 | static unsigned long get_frame_pointer(struct task_struct *task, | 49 | static 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)) |