summaryrefslogtreecommitdiffstats
path: root/arch/um/kernel
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2013-09-23 17:38:04 +0200
committerRichard Weinberger <richard@nod.at>2013-11-17 11:27:40 +0100
commite96d1c3695d6f5fde010d27e2a245a6656de688c (patch)
treee584597c3b3af3b9440f07035c6cf207f24097c6 /arch/um/kernel
parenta1850e9c7282db1c19a18093a945d5e84bfe7418 (diff)
downloadlinux-e96d1c3695d6f5fde010d27e2a245a6656de688c.tar.gz
linux-e96d1c3695d6f5fde010d27e2a245a6656de688c.tar.bz2
linux-e96d1c3695d6f5fde010d27e2a245a6656de688c.zip
um: Make kstack_depth_to_print conform to arch/x86
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/kernel')
-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)
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))