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

Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
Helge Deller 2020-12-17 17:57:54 +01:00
parent 92bf22614b
commit f286303286

View file

@ -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;