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)
commit859f206290f345c151a6005de639ba9677bf3e18
tree072f793fabc407cd60fa0bac9ec538279423a1c2
parent5d6da83c44af70ede7bfd0fd6d1ef8a3b3e0402c
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