sched/fair: Fix stale comment referencing update_cfs_shares()
PATCH 1/1 sched/fair: Fix stale comment referencing update_cfs_shares()
update_cfs_shares() has been renamed to update_cfs_group(), but some comments still refer to the old function name.
Update these comments to reflect the current code and avoid confusion.
--- kernel/sched/fair.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/sched/fair.c +2 -2
@@ -4155,7 +4155,7 @@ static inline bool cfs_rq_is_decayed(struct cfs_rq *cfs_rq)* differential update where we store the last value we propagated. This in * turn allows skipping updates if the differential is 'small'. * -* Updating tg's load_avg is necessary before update_cfs_share(). +* Updating tg's load_avg is necessary before update_cfs_group(). */ static inline void update_tg_load_avg (struct cfs_rq *cfs_rq) {
@@ -4615,7 +4615,7 @@ static void migrate_se_pelt_lag(struct sched_entity *se) {}* The cfs_rq avg is the direct sum of all its entities (blocked and runnable) * avg. The immediate corollary is that all (fair) tasks must be attached. * -* cfs_rq->avg is used for task_h_load() and update_cfs_share() for example. +* cfs_rq->avg is used for task_h_load() and update_cfs_group() for example. * * Return: true if the load decayed or we removed load. *
Signature · 1 line
2.43.0
Quoted 24 lines · Zhan Xusheng
update_cfs_shares()has been renamed toupdate_cfs_group(), but some comments still refer to the old function name.Update these comments to reflect the current code and avoid confusion.
Signed-off-by Zhan Xusheng <[email protected]>--- kernel/sched/fair.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)kernel/sched/fair.c +1
-1@@ -4155,7 +4155,7 @@ static inline bool cfs_rq_is_decayed(struct cfs_rq *cfs_rq)* differential update where we store the last value we propagated. This in * turn allows skipping updates if the differential is 'small'. * -* Updating tg's load_avg is necessary before update_cfs_share(). +* Updating tg's load_avg is necessary before update_cfs_group(). */ static inline void update_tg_load_avg (struct cfs_rq *cfs_rq) {
kernel/sched/fair.c static void migrate_se_pelt_lag(struct sched_entity *se) {} · line 4621
Quoted 8 lines
kernel/sched/fair.c +1
-1@@ -4615,7 +4615,7 @@ static void migrate_se_pelt_lag(struct sched_entity *se) {}* The cfs_rq avg is the direct sum of all its entities (blocked and runnable) * avg. The immediate corollary is that all (fair) tasks must be attached. * -* cfs_rq->avg is used for task_h_load() and update_cfs_share() for example. +* cfs_rq->avg is used for task_h_load() and update_cfs_group() for example. * * Return: true if the load decayed or we removed load. *
Should mention1ea6c46a23f1 ("sched/fair: Propagate an effective runnable_load_avg") apart from that:
PATCH v2 1/1 sched/fair: Fix stale comment referencing update_cfs_shares()
update_cfs_shares() has been renamed to update_cfs_group(), but some comments still refer to the old function name.
Update these comments to reflect the current code and avoid confusion.
--- kernel/sched/fair.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/sched/fair.c +2 -2
@@ -4156,7 +4156,7 @@ static inline bool cfs_rq_is_decayed(struct cfs_rq *cfs_rq)* differential update where we store the last value we propagated. This in * turn allows skipping updates if the differential is 'small'. * -* Updating tg's load_avg is necessary before update_cfs_share(). +* Updating tg's load_avg is necessary before update_cfs_group(). */ static inline void update_tg_load_avg (struct cfs_rq *cfs_rq) {
@@ -4616,7 +4616,7 @@ static void migrate_se_pelt_lag(struct sched_entity *se) {}* The cfs_rq avg is the direct sum of all its entities (blocked and runnable) * avg. The immediate corollary is that all (fair) tasks must be attached. * -* cfs_rq->avg is used for task_h_load() and update_cfs_share() for example. +* cfs_rq->avg is used for task_h_load() and update_cfs_group() for example. * * Return: true if the load decayed or we removed load. *
Signature · 1 line
2.43.0
From: Zhan Xusheng <[email protected]>
Hi Peter,
A polite ping on this trivial comment fix in case it fell through the cracks. v2 was sent on 2026-04-08 with Christian's Reviewed-by:
https://lore.kernel.org/lkml/[email protected]/
Thanks,
Zhan