summaryrefslogtreecommitdiffstats
path: root/arch/csky/kernel/stacktrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/csky/kernel/stacktrace.c')
-rw-r--r--arch/csky/kernel/stacktrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/csky/kernel/stacktrace.c b/arch/csky/kernel/stacktrace.c
index 16ae20a0af34..1b280ef08004 100644
--- a/arch/csky/kernel/stacktrace.c
+++ b/arch/csky/kernel/stacktrace.c
@@ -115,7 +115,7 @@ unsigned long get_wchan(struct task_struct *task)
{
unsigned long pc = 0;
- if (likely(task && task != current && task->state != TASK_RUNNING))
+ if (likely(task && task != current && !task_is_running(task)))
walk_stackframe(task, NULL, save_wchan, &pc);
return pc;
}