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

Huang Shijie posted 1 patch 2 months, 1 week ago
kernel/sched/fair.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
[PATCH] sched/fair: change the comment for vruntime_eligible()
Posted by Huang Shijie 2 months, 1 week ago
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