Skip to contentSkip to conversation

sched/eevdf: fix typo in the comment of place_entity

PATCH New Liu Song 1 participant 1 message Jan 2, 2024 Scheduler

lore
Share & tools
lore

Liu Song

author
#0 lore raw

PATCH 1/1 sched/eevdf: fix typo in the comment of place_entity

In the derivation of the formula, 'l' should be 'vl_i', fix it.

---
 kernel/sched/fair.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/fair.c +1 -1
index bcd0f230e21f..b3dc606ce565 100644
@@ -5177,7 +5177,7 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int flags)
 		 *   V' = (\Sum w_j*v_j + w_i*v_i) / (W + w_i)
 		 *      = (W*V + w_i*(V - vl_i)) / (W + w_i)
 		 *      = (W*V + w_i*V - w_i*vl_i) / (W + w_i)
-		 *      = (V*(W + w_i) - w_i*l) / (W + w_i)
+		 *      = (V*(W + w_i) - w_i*vl_i) / (W + w_i)
 		 *      = V - w_i*vl_i / (W + w_i)
 		 *
 		 * And the actual lag after adding an entity with vl_i is:
Signature · 1 line
2.19.1.6.gb485710b