Commit f2863032 authored by Helge Deller's avatar Helge Deller

parisc: Drop out of get_whan() if task is running again

Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 92bf2261
......@@ -260,6 +260,8 @@ get_wchan(struct task_struct *p)
do {
if (unwind_once(&info) < 0)
return 0;
if (p->state == TASK_RUNNING)
return 0;
ip = info.ip;
if (!in_sched_functions(ip))
return ip;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment