]> git.baikalelectronics.ru Git - kernel.git/commit
sched/rt: Update comment in pick_next_task_rt()
authorMuchun Song <smuchun@gmail.com>
Sat, 27 Oct 2018 03:05:17 +0000 (11:05 +0800)
committerIngo Molnar <mingo@kernel.org>
Mon, 29 Oct 2018 06:18:04 +0000 (07:18 +0100)
commitf0725a84d5a600dcd32bfb2697a4bfbe60b19d18
treeb1054c693325757253afb45ea7792516cb73ef4e
parent3394bef37ce69cec405a8314ba47b7d61e2b68bf
sched/rt: Update comment in pick_next_task_rt()

Commit:

  c2f0f67e4c3d ("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>
kernel/sched/rt.c