Skip to content

Commit a68d750

Browse files
Muchun SongIngo Molnar
authored andcommitted
sched/rt: Update comment in pick_next_task_rt()
Commit: f4ebcbc ("sched/rt: Substract number of tasks of throttled queues from rq->nr_running") added a new rt_rq->rt_queued field, which is used to indicate the status of rq->rt enqueue or dequeue. So, the ->rt_nr_running check was removed and we now check ->rt_queued instead. Fix the comment in pick_next_task_rt() as well, which was still referencing the old logic. Signed-off-by: Muchun Song <smuchun@gmail.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/20181027030517.23292-1-smuchun@gmail.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent b59dfda commit a68d750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/sched/rt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1561,7 +1561,7 @@ pick_next_task_rt(struct rq *rq, struct task_struct *prev, struct rq_flags *rf)
15611561

15621562
/*
15631563
* We may dequeue prev's rt_rq in put_prev_task().
1564-
* So, we update time before rt_nr_running check.
1564+
* So, we update time before rt_queued check.
15651565
*/
15661566
if (prev->sched_class == &rt_sched_class)
15671567
update_curr_rt(rq);

0 commit comments

Comments
 (0)