* [PATCH] sched/fair: change the comment for vruntime_eligible()
@ 2024-09-18 2:28 Huang Shijie
0 siblings, 0 replies; only message in thread
From: Huang Shijie @ 2024-09-18 2:28 UTC (permalink / raw)
To: mingo, peterz, juri.lelli
Cc: patches, vincent.guittot, dietmar.eggemann, rostedt, bsegall,
mgorman, vschneid, linux-kernel, Huang Shijie
Current comment for vruntime_eligible() is confusing.
Change "v" to "v0" to keep align with avg_vruntime_add():
v0 := cfs_rq->min_vruntime
Signed-off-by: Huang Shijie <shijie@os.amperecomputing.com>
---
kernel/sched/fair.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 92f7cffe8860..9ed51ac2c16b 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -714,11 +714,11 @@ static void update_entity_lag(struct cfs_rq *cfs_rq, struct sched_entity *se)
*
* lag_i >= 0 -> V >= v_i
*
- * \Sum (v_i - v)*w_i
- * V = ------------------ + v
+ * \Sum (v_i - v0)*w_i
+ * V = ------------------ + v0
* \Sum w_i
*
- * lag_i >= 0 -> \Sum (v_i - v)*w_i >= (v_i - v)*(\Sum w_i)
+ * lag_i >= 0 -> \Sum (v_i - v0)*w_i >= (v_i - v0)*(\Sum w_i)
*
* Note: using 'avg_vruntime() > se->vruntime' is inaccurate due
* to the loss in precision caused by the division.
--
2.40.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-09-18 2:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-18 2:28 [PATCH] sched/fair: change the comment for vruntime_eligible() Huang Shijie
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®