sched/rt: Change rt_nr_running to rt_queued in the comment
PATCH RESEND 1/1 sched/rt: Change rt_nr_running to rt_queued in the comment
The code actually checks rt_queued not rt_nr_running in pick_next_task_rt(), so change the corresponding comment.
Signed-off-by T.Zhou <[email protected]>
--- kernel/sched/rt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/rt.c +1 -1
@@ -1550,7 +1550,7 @@ pick_next_task_rt(struct rq *rq, struct task_struct *prev, struct pin_cookie coo/* * We may dequeue prev's rt_rq in put_prev_task(). -* So, we update time before rt_nr_running check. +* So, we update time before rt_queued check. */ if (prev->sched_class == &rt_sched_class)update_curr_rt (rq);
Signature · 1 line
2.7.3
Quoted 5 lines · T.Zhou
The code actually checks
rt_queuednotrt_nr_runninginpick_next_task_rt(), so change the corresponding comment.Signed-off-by T.Zhou <[email protected]>
-- Daniel