From nobody Fri Oct 02 15:50:01 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4hxCsP4JDDz6vc05 for ; Fri, 02 Oct 2026 15:50:01 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hxCsP1RFwz4hTg for ; Fri, 02 Oct 2026 15:50:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790956201; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Y0qLVuJ6D0QXt8YGiXt6tE0gbijI94Y0jaEv34g8fdE=; b=HvV6QoLNqueHKJIt9Hhk5HARbQskHplOgJhx58aeKGB+ivwrBSi8N6Y3OS0R9rz6VZ+ILZ rwP8HZ/6MqDhno7evwg1K9vSNsGgpMr0VSxhp9EH0Fhg2cHiLNotACn4McZbGnly7wRSzx bPesfsIW7BxDIHEufusrMLlOYMuWb0RfBo5AGjLfmhpKQs2BiIy9gxRooVBkOqserWCNdo BNKg4xA+d219/+vm8nG7Uo8u4niUljhcf5SGuIDsnM4fXBeaFPWunvS1nIlTtFuA4NjUyM GKh3BKmKSk0C0HhlvfXBfbuDVWPlmbFuwa9LKlRTh0+r499RDRZJfvwjRNyWaw== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1790956201; b=FydAr0SZvGRUScSbbwSpGsxYNSy5Sx7VAxTpa9GlNQsgKFpwYr9Cy0mIvhP+D6MuaZZr8g MTEVppQjJy4xMxl/KXjH63kIVJ+BSHvYaum1J+ND/2Zfoki2/g82IJ2O7rA9wPxJfR3LQX FFesTHxtribN/EPTM0oYsi/j46+eS8/tGT8hTaHLna3QD7uGqV5Sntjt8V2fNQKfCxW4PM PyEM+JRA53XE4u7i4cR61UlMFCerz6CdEjB+mPtUcl5ep2qKaCwe8x6UDHNulSaZsUpZDu ZCFYRbekYpN6p0QJQ9fgdWDksWqxWUkuNno9ZgfrFRwyEwEagaV8EFxwnrjKCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790956201; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Y0qLVuJ6D0QXt8YGiXt6tE0gbijI94Y0jaEv34g8fdE=; b=FDESjV7i12msVmPyF1TbUcVKYY7Pa8RLdYCizvn0dgxYHh8mDdoA+Q7gvPPjrz3ZBH7vGO 9dYCEKEAEU4DIK1uD4EJnGFMCynz96jFiUvjmuNqK9Xf+Dz05+0LckyVdqdNKhK/GK8qfw ogxc7C5TJYIZtOcRcBxAZm+pf7AgB/NMu2XM5SiGNF98y2Nz8cEeeyyjT5ugh01y3+PzEf URYy56NFpF69WtahA6tveoWwZXnIjmiTkb+TVEBbKVBIQ6v5gRA7g8yXGT5No6oXzREQOB mKVYtP711CSmkNio9zcEcBIEqVzs/LAFRXhnNrhuIQA43n1GQQhjxw6xCdZrqw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hxCsP0VyWzNHy for ; Fri, 02 Oct 2026 15:50:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 4053e by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Oct 2026 15:50:01 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Minsoo Choo Subject: git: a4f40ac17dfe - stable/14 - sched_4bsd: move comment to correct location List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mchoo X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: a4f40ac17dfef9dd7e1924ca73fff2fd394768f0 Auto-Submitted: auto-generated Date: Fri, 02 Oct 2026 15:50:01 +0000 Message-Id: <6abfd2a9.4053e.7f91b230@gitrepo.freebsd.org> The branch stable/14 has been updated by mchoo: URL: https://cgit.FreeBSD.org/src/commit/?id=a4f40ac17dfef9dd7e1924ca73fff2fd394768f0 commit a4f40ac17dfef9dd7e1924ca73fff2fd394768f0 Author: Minsoo Choo AuthorDate: 2026-08-24 02:25:36 +0000 Commit: Minsoo Choo CommitDate: 2026-10-02 15:44:53 +0000 sched_4bsd: move comment to correct location Reviewed by: olce Approved by: olce (mentor) MFC after: 2 weeks Sponsored by: FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D59403 (cherry picked from commit 039498c2735ee0697da24b9c60c9e67680f91f31) --- sys/kern/sched_4bsd.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c index a54e96967ec5..32f0fa6696b5 100644 --- a/sys/kern/sched_4bsd.c +++ b/sys/kern/sched_4bsd.c @@ -515,11 +515,6 @@ schedcpu(void) * ts_pctcpu is only for ps and ttyinfo(). */ ts->ts_pctcpu = (ts->ts_pctcpu * ccpu) >> FSHIFT; - /* - * If the td_sched has been idle the entire second, - * stop recalculating its priority until - * it wakes up. - */ if (ts->ts_cpticks != 0) { #if (FSHIFT >= CCPU_SHIFT) ts->ts_pctcpu += (realstathz == 100) @@ -555,6 +550,12 @@ schedcpu(void) ts->ts_slptime = 0; } else ts->ts_slptime++; + + /* + * If the td_sched has been idle the entire second, + * stop recalculating its priority until + * it wakes up. + */ if (ts->ts_slptime > 1) { thread_unlock(td); continue;