Skip to contentSkip to conversation

sched/rt: Change rt_nr_running to rt_queued in the comment

PATCH Superseded T.Zhou 3 participants 5 messages Nov 18, 2016 – Nov 19, 2016 Scheduler

lore
Share & tools
lore

T.Zhou

author
#0 lore raw

PATCH 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.

---
 kernel/sched/rt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/rt.c +1 -1
index 2516b8d..9b4a5c5 100644
@@ -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
reviewer Acked-by on v1 1/1
#1 lore raw

Peter,

Can you pull this patch into your queue?

-- Steve

Quoted 22 lines · On Fri, 18 Nov 2016 14:39:04 +0800 "T.Zhou" <[email protected]> wrote:

The code actually checks rt_queued not rt_nr_running in pick_next_task_rt(), so change the corresponding comment.

---
 kernel/sched/rt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/rt.c +1 -1
index 2516b8d..9b4a5c5 100644
@@ -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);
maintainer
#2 lore raw
Quoted 4 lines · Steven Rostedt

Peter,

Can you pull this patch into your queue?

Not in my inbox..

#3 lore raw
Quoted 7 lines · On Fri, 18 Nov 2016 16:00:57 +0100 Peter Zijlstra <[email protected]> wrote:
Quoted 4 lines · Steven Rostedt

Peter,

Can you pull this patch into your queue?

Not in my inbox..

Can you get it from LKML? If not, I can bounce it to you.

-- Steve

author
#4 lore raw
In reply to Peter Zijlstra

Hi Peter,

Quoted 7 lines · Peter Zijlstra
Quoted 4 lines · Steven Rostedt

Peter,

Can you pull this patch into your queue?

Not in my inbox..

This patch is so simple, so i do not want to interrupt you.. Will resend soon.

Thanks,
T.Zhou