* [PATCH] sched/fair: Fix stale comment referencing update_cfs_shares()
@ 2026-04-02 3:13 Zhan Xusheng
2026-04-08 8:59 ` Christian Loehle
0 siblings, 1 reply; 4+ messages in thread
From: Zhan Xusheng @ 2026-04-02 3:13 UTC (permalink / raw)
To: Peter Zijlstra; +Cc: linux-kernel, Zhan Xusheng
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.
Signed-off-by: Zhan Xusheng <zhanxusheng@xiaomi.com>
---
kernel/sched/fair.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index bf948db905ed..172194919c33 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -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.
*
--
2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] sched/fair: Fix stale comment referencing update_cfs_shares()
2026-04-02 3:13 [PATCH] sched/fair: Fix stale comment referencing update_cfs_shares() Zhan Xusheng
@ 2026-04-08 8:59 ` Christian Loehle
2026-04-08 12:01 ` [PATCH v2] " Zhan Xusheng
0 siblings, 1 reply; 4+ messages in thread
From: Christian Loehle @ 2026-04-08 8:59 UTC (permalink / raw)
To: Zhan Xusheng, Peter Zijlstra; +Cc: linux-kernel, Zhan Xusheng
On 4/2/26 04:13, Zhan Xusheng wrote:
> 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.
>
> Signed-off-by: Zhan Xusheng <zhanxusheng@xiaomi.com>
> ---
> kernel/sched/fair.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
> index bf948db905ed..172194919c33 100644
> --- a/kernel/sched/fair.c
> +++ b/kernel/sched/fair.c
> @@ -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.
> *
Should mention
1ea6c46a23f1 ("sched/fair: Propagate an effective runnable_load_avg")
apart from that:
Reviewed-by: Christian Loehle <christian.loehle@arm.com>
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH v2] sched/fair: Fix stale comment referencing update_cfs_shares()
2026-04-08 8:59 ` Christian Loehle
@ 2026-04-08 12:01 ` Zhan Xusheng
2026-05-14 6:28 ` Zhan Xusheng
0 siblings, 1 reply; 4+ messages in thread
From: Zhan Xusheng @ 2026-04-08 12:01 UTC (permalink / raw)
To: Peter Zijlstra; +Cc: Christian Loehle, linux-kernel, Zhan Xusheng
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.
Fixes: 1ea6c46a23f1 ("sched/fair: Propagate an effective runnable_load_avg")
Signed-off-by: Zhan Xusheng <zhanxusheng@xiaomi.com>
Reviewed-by: Christian Loehle <christian.loehle@arm.com>
---
kernel/sched/fair.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index ab4114712be7..4577c302f3e3 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -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.
*
--
2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-05-14 6:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-02 3:13 [PATCH] sched/fair: Fix stale comment referencing update_cfs_shares() Zhan Xusheng
2026-04-08 8:59 ` Christian Loehle
2026-04-08 12:01 ` [PATCH v2] " Zhan Xusheng
2026-05-14 6:28 ` Zhan Xusheng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®