Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6383156rdb; Mon, 1 Jan 2024 22:51:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IGhBHBX6kU0nr4OuZ2yuQmvJNzCW+TjmI+kb33UFhwexGx3c6JgehbWOZaETUtXFqdit1gj X-Received: by 2002:a05:622a:312:b0:427:75d9:e653 with SMTP id q18-20020a05622a031200b0042775d9e653mr24527385qtw.127.1704178306702; Mon, 01 Jan 2024 22:51:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704178306; cv=none; d=google.com; s=arc-20160816; b=QhSrntxJ4pJWKhbh5JKrLRu/X9VbEtGwg1SCg7FOo5hXIYxU9rDKfsERmdikd/JrZQ N6y9Ll0ptG0me5VIHpAdKqnAg8Z2bpYXS4zYHHb+oRQiZ6ZTEh+ZhL522VhmHsSOSnac fpu2Pr0pDav2drLX6kCMOma1uEHDIkG6HbzsxzDm7K9SfB/yL+TCgkJi3QOV/mvA5Y3u vHi5WwbOHCh7JohuVt09n93PO46d28irQ++vAbILScvHokuGPQocRlivDwPYnmkuM7aC lBGXpvk7HfsF7hHHVZlcJDQ4e4f6X4FzjU2FHMlpCYgVNZAVRqmlz7qoWoLP+JxVRe0e NBGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=n0RMQ7YDydL5vVTTn6zdngelI5D0i+D458DoUOFXxew=; fh=7XK6E8opnvAFOcXA6M7iIbWsU5mUKljd4SacDmVPnss=; b=ufryAxB5DaI2tfxeKMJugk8xVGyx22Ct4QuTGLLhIOWA12N04DzEnGQWqmTpUmLCIR gsBtfkm+hijgolRcqNy/DjQJCh6Y9dlr0mRfhCsrz8UAQP+/Scdvb+kTDwTMho3+SPTp m/sN2/i3Ba/r5fOuPPy3FOA5FIY81NE3dJQ+2gK726d1SMvgClxnL1W7Gs2vIeOABKyE s3qRzYIEjHIDSN0fwh2pHL0821Qou9XUiBRif9BxeP9rBkZ1ZtTeX8PJu7F/ceDT+2qV IIfumMY7LPT9l0cAP4j4fi3pXWhyabm4hwKHLDTjwOdvrsO3bYZoXbGWYEbxxuVrh4D8 cP2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-14095-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14095-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 10-20020ac8570a000000b00428247a292fsi3133740qtw.398.2024.01.01.22.51.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jan 2024 22:51:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14095-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-14095-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14095-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3F7841C214A2 for ; Tue, 2 Jan 2024 06:51:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3EABBDDBC; Tue, 2 Jan 2024 06:50:28 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from out30-112.freemail.mail.aliyun.com (out30-112.freemail.mail.aliyun.com [115.124.30.112]) (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 624FDD27D for ; Tue, 2 Jan 2024 06:50:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R591e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=liusong@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0VznCwIF_1704178198; Received: from localhost(mailfrom:liusong@linux.alibaba.com fp:SMTPD_---0VznCwIF_1704178198) by smtp.aliyun-inc.com; Tue, 02 Jan 2024 14:50:22 +0800 From: Liu Song To: mingo@redhat.com, peterz@infradead.org Cc: linux-kernel@vger.kernel.org, liusong@linux.alibaba.com Subject: [PATCH] sched/eevdf: fix typo in the comment of place_entity Date: Tue, 2 Jan 2024 14:49:58 +0800 Message-Id: <20240102064958.100300-1-liusong@linux.alibaba.com> X-Mailer: git-send-email 2.19.1.6.gb485710b Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In the derivation of the formula, 'l' should be 'vl_i', fix it. Signed-off-by: Liu Song --- 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 bcd0f230e21f..b3dc606ce565 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -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: -- 2.19.1.6.gb485710b