summaryrefslogtreecommitdiff
path: root/arch/nios2/kernel/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nios2/kernel/process.c')
-rw-r--r--arch/nios2/kernel/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nios2/kernel/process.c b/arch/nios2/kernel/process.c
index c5f916ca6845..9ff37ba2bb60 100644
--- a/arch/nios2/kernel/process.c
+++ b/arch/nios2/kernel/process.c
@@ -223,7 +223,7 @@ unsigned long get_wchan(struct task_struct *p)
unsigned long stack_page;
int count = 0;
- if (!p || p == current || p->state == TASK_RUNNING)
+ if (!p || p == current || task_is_running(p))
return 0;
stack_page = (unsigned long)p;