Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1525837

[PATCH RESEND] sched/rt: Change rt_nr_running to rt_queued in the comment

From "T.Zhou" <t1zhou@163.com>
Newsgroups linux.kernel
Subject [PATCH RESEND] sched/rt: Change rt_nr_running to rt_queued in the comment
Date 2016-11-19 04:20 +0100
Message-ID <sF4m5-7L8-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH RESEND] sched/rt: Change rt_nr_running to rt_queued in the  comment "T.Zhou" <t1zhou@163.com> - 2016-11-19 04:20 +0100
  Re: [PATCH RESEND] sched/rt: Change rt_nr_running to rt_queued in the  comment Daniel Bristot de Oliveira <bristot@redhat.com> - 2016-11-22 12:20 +0100

csiph-web