Skip to contentSkip to conversation

sched/fair: change the comment for vruntime_eligible()

PATCH New Huang Shijie 1 participant 1 message Sep 18, 2024 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched/fair: change the comment for vruntime_eligible()

Current comment for vruntime_eligible() is confusing. Change "v" to "v0" to keep align with avg_vruntime_add():

        v0 := cfs_rq->min_vruntime
---
 kernel/sched/fair.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
kernel/sched/fair.c +3 -3
index 92f7cffe8860..9ed51ac2c16b 100644
@@ -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.
Signature · 1 line
2.40.1