diff options
Diffstat (limited to 'arch/x86/kernel/dumpstack_64.c')
| -rw-r--r-- | arch/x86/kernel/dumpstack_64.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/x86/kernel/dumpstack_64.c b/arch/x86/kernel/dumpstack_64.c index 5f1c6266eb30..d558a8a49016 100644 --- a/arch/x86/kernel/dumpstack_64.c +++ b/arch/x86/kernel/dumpstack_64.c | |||
| @@ -153,7 +153,6 @@ void dump_trace(struct task_struct *task, struct pt_regs *regs, | |||
| 153 | const struct stacktrace_ops *ops, void *data) | 153 | const struct stacktrace_ops *ops, void *data) |
| 154 | { | 154 | { |
| 155 | const unsigned cpu = get_cpu(); | 155 | const unsigned cpu = get_cpu(); |
| 156 | struct thread_info *tinfo; | ||
| 157 | unsigned long *irq_stack = (unsigned long *)per_cpu(irq_stack_ptr, cpu); | 156 | unsigned long *irq_stack = (unsigned long *)per_cpu(irq_stack_ptr, cpu); |
| 158 | unsigned long dummy; | 157 | unsigned long dummy; |
| 159 | unsigned used = 0; | 158 | unsigned used = 0; |
| @@ -179,7 +178,6 @@ void dump_trace(struct task_struct *task, struct pt_regs *regs, | |||
| 179 | * current stack address. If the stacks consist of nested | 178 | * current stack address. If the stacks consist of nested |
| 180 | * exceptions | 179 | * exceptions |
| 181 | */ | 180 | */ |
| 182 | tinfo = task_thread_info(task); | ||
| 183 | while (!done) { | 181 | while (!done) { |
| 184 | unsigned long *stack_end; | 182 | unsigned long *stack_end; |
| 185 | enum stack_type stype; | 183 | enum stack_type stype; |
| @@ -202,7 +200,7 @@ void dump_trace(struct task_struct *task, struct pt_regs *regs, | |||
| 202 | if (ops->stack(data, id) < 0) | 200 | if (ops->stack(data, id) < 0) |
| 203 | break; | 201 | break; |
| 204 | 202 | ||
| 205 | bp = ops->walk_stack(tinfo, stack, bp, ops, | 203 | bp = ops->walk_stack(task, stack, bp, ops, |
| 206 | data, stack_end, &graph); | 204 | data, stack_end, &graph); |
| 207 | ops->stack(data, "<EOE>"); | 205 | ops->stack(data, "<EOE>"); |
| 208 | /* | 206 | /* |
| @@ -218,7 +216,7 @@ void dump_trace(struct task_struct *task, struct pt_regs *regs, | |||
| 218 | 216 | ||
| 219 | if (ops->stack(data, "IRQ") < 0) | 217 | if (ops->stack(data, "IRQ") < 0) |
| 220 | break; | 218 | break; |
| 221 | bp = ops->walk_stack(tinfo, stack, bp, | 219 | bp = ops->walk_stack(task, stack, bp, |
| 222 | ops, data, stack_end, &graph); | 220 | ops, data, stack_end, &graph); |
| 223 | /* | 221 | /* |
| 224 | * We link to the next stack (which would be | 222 | * We link to the next stack (which would be |
| @@ -240,7 +238,7 @@ void dump_trace(struct task_struct *task, struct pt_regs *regs, | |||
| 240 | /* | 238 | /* |
| 241 | * This handles the process stack: | 239 | * This handles the process stack: |
| 242 | */ | 240 | */ |
| 243 | bp = ops->walk_stack(tinfo, stack, bp, ops, data, NULL, &graph); | 241 | bp = ops->walk_stack(task, stack, bp, ops, data, NULL, &graph); |
| 244 | put_cpu(); | 242 | put_cpu(); |
| 245 | } | 243 | } |
| 246 | EXPORT_SYMBOL(dump_trace); | 244 | EXPORT_SYMBOL(dump_trace); |
