From nobody Fri Dec 19 12:31:05 2025 Received: from wxsgout04.xfusion.com (wxsgout04.xfusion.com [36.139.87.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CDECE1F606 for ; Wed, 20 Dec 2023 09:49:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=xfusion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xfusion.com Received: from wuxshcsitd00600.xfusion.com (unknown [10.32.133.213]) by wxsgout04.xfusion.com (SkyGuard) with ESMTPS id 4Sw7wb74fnz9ykLG; Wed, 20 Dec 2023 17:45:51 +0800 (CST) Received: from localhost (10.82.147.3) by wuxshcsitd00600.xfusion.com (10.32.133.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 20 Dec 2023 17:49:27 +0800 Date: Wed, 20 Dec 2023 17:49:26 +0800 From: Wang Jinchao To: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , CC: , Subject: [PATCH] sched/eevdf: Correct comment in place_entity Message-ID: <202312201748+0800-wangjinchao@xfusion.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline X-ClientProxiedBy: wuxshcsitd00603.xfusion.com (10.32.134.231) To wuxshcsitd00600.xfusion.com (10.32.133.213) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Fix variable names in the place_entity function comments to accurately represent lag calculation. Signed-off-by: Wang Jinchao --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index d7a3c63a2171..23e3fa1236f5 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -5160,7 +5160,7 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_enti= ty *se, int flags) * V' =3D (\Sum w_j*v_j + w_i*v_i) / (W + w_i) * =3D (W*V + w_i*(V - vl_i)) / (W + w_i) * =3D (W*V + w_i*V - w_i*vl_i) / (W + w_i) - * =3D (V*(W + w_i) - w_i*l) / (W + w_i) + * =3D (V*(W + w_i) - w_i*vl_i) / (W + w_i) * =3D V - w_i*vl_i / (W + w_i) * * And the actual lag after adding an entity with vl_i is: --=20 2.40.0