From owner-dev-commits-src-all@freebsd.org Thu Jun 3 03:51:04 2021 Return-Path: Delivered-To: dev-commits-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CA418651610; Thu, 3 Jun 2021 03:51:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FwX4S5PPYz3l8s; Thu, 3 Jun 2021 03:51:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A18122302B; Thu, 3 Jun 2021 03:51:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1533p4Cl054396; Thu, 3 Jun 2021 03:51:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1533p467054395; Thu, 3 Jun 2021 03:51:04 GMT (envelope-from git) Date: Thu, 3 Jun 2021 03:51:04 GMT Message-Id: <202106030351.1533p467054395@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 43521b46fc78 - main - Correcting comment about "sched_interact_score". MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 43521b46fc788096648dfa89650dfe394dc0d455 Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jun 2021 03:51:04 -0000 The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=43521b46fc788096648dfa89650dfe394dc0d455 commit 43521b46fc788096648dfa89650dfe394dc0d455 Author: wiklam AuthorDate: 2020-05-19 01:55:08 +0000 Commit: Warner Losh CommitDate: 2021-06-03 03:50:57 +0000 Correcting comment about "sched_interact_score". Reviewed by: jrtc@, imp@ Pull Request: https://github.com/freebsd/freebsd-src/pull/431 Sponsored by: Netflix --- sys/kern/sched_ule.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index 49bf3328f3d9..094a3fffef8c 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -1516,7 +1516,7 @@ sched_initticks(void *dummy) * When a thread's sleep time is greater than its run time the * calculation is: * - * scaling factor + * scaling factor * interactivity score = --------------------- * sleep time / run time * @@ -1524,9 +1524,9 @@ sched_initticks(void *dummy) * When a thread's run time is greater than its sleep time the * calculation is: * - * scaling factor - * interactivity score = --------------------- + scaling factor - * run time / sleep time + * scaling factor + * interactivity score = 2 * scaling factor - --------------------- + * run time / sleep time */ static int sched_interact_score(struct thread *td)