Skip to content

Commit

Permalink
um: Make kstack_depth_to_print conform to arch/x86
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Weinberger <[email protected]>
  • Loading branch information
richardweinberger committed Nov 17, 2013
1 parent a1850e9 commit e96d1c3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions arch/um/kernel/sysrq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit e96d1c3

Please sign in to comment.