diff options
Diffstat (limited to 'arch/arc/kernel/stacktrace.c')
-rw-r--r-- | arch/arc/kernel/stacktrace.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arc/kernel/stacktrace.c b/arch/arc/kernel/stacktrace.c index f8b7d880304d..ab97b034922f 100644 --- a/arch/arc/kernel/stacktrace.c +++ b/arch/arc/kernel/stacktrace.c | |||
@@ -237,11 +237,13 @@ unsigned int get_wchan(struct task_struct *tsk) | |||
237 | */ | 237 | */ |
238 | void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) | 238 | void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) |
239 | { | 239 | { |
240 | /* Assumes @tsk is sleeping so unwinds from __switch_to */ | ||
240 | arc_unwind_core(tsk, NULL, __collect_all_but_sched, trace); | 241 | arc_unwind_core(tsk, NULL, __collect_all_but_sched, trace); |
241 | } | 242 | } |
242 | 243 | ||
243 | void save_stack_trace(struct stack_trace *trace) | 244 | void save_stack_trace(struct stack_trace *trace) |
244 | { | 245 | { |
245 | arc_unwind_core(current, NULL, __collect_all, trace); | 246 | /* Pass NULL for task so it unwinds the current call frame */ |
247 | arc_unwind_core(NULL, NULL, __collect_all, trace); | ||
246 | } | 248 | } |
247 | #endif | 249 | #endif |