]> git.baikalelectronics.ru Git - kernel.git/commit
sched/fair: Update comments in enqueue/dequeue_entity()
authorChengming Zhou <zhouchengming@bytedance.com>
Thu, 18 Aug 2022 12:48:00 +0000 (20:48 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 23 Aug 2022 09:01:18 +0000 (11:01 +0200)
commit75faababb61fab98907a3dda2e88a1b76be80fc6
tree072f793fabc407cd60fa0bac9ec538279423a1c2
parent6cbbce871a3c02b1a3fd7c71daa3fb32a3160fa2
sched/fair: Update comments in enqueue/dequeue_entity()

When reading the sched_avg related code, I found the comments in
enqueue/dequeue_entity() are not updated with the current code.

We don't add/subtract entity's runnable_avg from cfs_rq->runnable_avg
during enqueue/dequeue_entity(), those are done only for attach/detach.

This patch updates the comments to reflect the current code working.

Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lore.kernel.org/r/20220818124805.601-5-zhouchengming@bytedance.com
kernel/sched/fair.c