linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RESEND] sched/rt: Change rt_nr_running to rt_queued in the comment
@ 2016-11-19  3:13 T.Zhou
  2016-11-22 11:19 ` Daniel Bristot de Oliveira
  0 siblings, 1 reply; 2+ messages in thread
From: T.Zhou @ 2016-11-19  3:13 UTC (permalink / raw)
  To: peterz, rostedt; +Cc: linux-kernel, mingo

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 <t1zhou@163.com>
---
 kernel/sched/rt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c
index 2516b8d..9b4a5c5 100644
--- a/kernel/sched/rt.c
+++ b/kernel/sched/rt.c
@@ -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);
-- 
2.7.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH RESEND] sched/rt: Change rt_nr_running to rt_queued in the comment
  2016-11-19  3:13 [PATCH RESEND] sched/rt: Change rt_nr_running to rt_queued in the comment T.Zhou
@ 2016-11-22 11:19 ` Daniel Bristot de Oliveira
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Bristot de Oliveira @ 2016-11-22 11:19 UTC (permalink / raw)
  To: T.Zhou, peterz, rostedt; +Cc: linux-kernel, mingo

On 11/19/2016 04:13 AM, T.Zhou wrote:
> 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 <t1zhou@163.com>

Acked-by: Daniel Bristot de Oliveira <bristot@redhat.com>

-- Daniel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-11-22 11:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-19  3:13 [PATCH RESEND] sched/rt: Change rt_nr_running to rt_queued in the comment T.Zhou
2016-11-22 11:19 ` Daniel Bristot de Oliveira

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).