summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorMuchun Song <smuchun@gmail.com>2018-10-27 11:05:17 +0800
committerIngo Molnar <mingo@kernel.org>2018-10-29 07:18:04 +0100
commita68d75081aeccfb169575bea6f452a5a12b9f49b (patch)
treeb1054c693325757253afb45ea7792516cb73ef4e /kernel
parentb59dfdaef173677b0b7e10f375226c0a1114fd20 (diff)
downloadlinux-a68d75081aeccfb169575bea6f452a5a12b9f49b.tar.bz2
sched/rt: Update comment in pick_next_task_rt()
Commit: f4ebcbc0d7e0 ("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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched/rt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c
index 2e2955a8cf8f..a21ea6021929 100644
--- a/kernel/sched/rt.c
+++ b/kernel/sched/rt.c
@@ -1561,7 +1561,7 @@ pick_next_task_rt(struct rq *rq, struct task_struct *prev, struct rq_flags *rf)
/*
* 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);