Fix for the "runq" command on kernels that are configured with

CONFIG_RT_GROUP_SCHED=n.  Without the patch, real-time tasks queued
on a per-cpu rt_rq.rt_prio_array will not be displayed under the
"RT PRIO_ARRAY" header.
(mty.shibata@gmail.com)
This commit is contained in:
Dave Anderson 2015-01-23 14:24:57 -05:00
parent 93074413f3
commit 02086663bc

8
task.c
View File

@ -8715,9 +8715,13 @@ dump_RT_prio_array(ulong k_prio_array, char *u_prio_array)
&rt_rq_buf[OFFSET(rt_rq_active)]);
FREEBUF(rt_rq_buf);
continue;
} else
task_addr -= OFFSET(task_struct_rt);
}
}
if (VALID_MEMBER(task_struct_rt))
task_addr -= OFFSET(task_struct_rt);
else
task_addr -= OFFSET(task_struct_run_list);
if (!(tc = task_to_context(task_addr)))
continue;