From nobody Fri Oct 02 15:35:07 2026 X-Original-To: dev-commits-src-all@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 4hxCXC6hBZz6vZkp for ; Fri, 02 Oct 2026 15:35:07 +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 4hxCXC53gdz4Ymq for ; Fri, 02 Oct 2026 15:35:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790955307; 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=C9+N6vDBpndEosf5eLdeB9dC7OMV4IRjn4A86XipQC0=; b=pdCiHQQxn8Mo6+mzjMke1c384XUQJA3KzTicQjv9R3obfh/+yMNsvktOWQIvxJY/XOqUf7 t/8JEsg8NCu1EWi0AlgRttjioJpflxc64Szadz7ZCt8Kry+Glxs++i5aD7mvQiiZEK3pK4 3Il/mYISlruwT0kv1G/7LvNBNcLRI+wrzv6IsvUglpEsj+H3SHP4fes1N2hpzMFDEnW+aI WcFsVqhV59M4pn90quwEocYe76kmjYCj8Jlwllpwf1IPyB3k7aDbkIypzWV6e/OEuiISu+ OCdmhpwUzBEm4x6KgdOp2MaQe3Y8YoBPHGsTKILcZJtmYdUX1guFLE4U6umC7Q== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1790955307; b=ZvIRVIqq/ZcLWxz7TkrA0ZGIIV0RbJAe9VOJCQLjakDq9buRaBE2m1+kk8+t5rUHV1wNvU G9DAKY+gzpsCXdpxJ5QvSBPCD6i7x+g9cxOOez5cgFLsI7LyrDTHAfDBVO5pjl1oqY1GyS d5nQKWxQpF2x/22zw/oo4V750GgqFGW7VwdUrVrPC56gsn2pNfFE/5FmI2+gBuRenN3zKW 34ZU9iwlttniXUr4ILYL/lvCHT02AjYnza1OaZNwFL6JjBaQUOiYYS2oPixsLEGeWtzMhX y2onaaNDOUxwwYlQQUW8I3vamNEzA5dR3+ZmZ1iacU2Z511N7CoElGAuxp3z5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790955307; 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=C9+N6vDBpndEosf5eLdeB9dC7OMV4IRjn4A86XipQC0=; b=bdNpGP/Zot/gjLpxpM0zMSKK010uTRmC4CQkOc16e6aJicbx68vobNhKrg4sT7wQNpCqhA ojAc6/BsccFSgQpyEDJUOJTYwQ2CyBuCmjBzj6f2IideIy6LP0daERQIppENqeG6CTyxaS qteP4ytr7zPEHjlvbUbl0TTG8fHrWpnf6ueVlxPeISQ1TXBMUAbbrTagTMcQ1fxozz1vtf QROX6Y8ko8G2W3taPp4PbFLFnJHTce9O9Ko4HAWQZJQi9ATjzxWNhtzXkbENAETjbxnnnd a+Uw+QVLxLEJJK0RVf14HbT6PiqvXH2Js+lbC/Ie4P6OEAxvlejbypoD/63whw== 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 4hxCXC46FHzNg0 for ; Fri, 02 Oct 2026 15:35:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3f8d3 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Oct 2026 15:35:07 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Minsoo Choo Subject: git: b47f52ca4197 - stable/15 - sched_4bsd: move comment to correct location List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/15 X-Git-Reftype: branch X-Git-Commit: b47f52ca4197257dee5e174fcbf7c5e6da7dcddc Auto-Submitted: auto-generated Date: Fri, 02 Oct 2026 15:35:07 +0000 Message-Id: <6abfcf2b.3f8d3.b8498ba@gitrepo.freebsd.org> The branch stable/15 has been updated by mchoo: URL: https://cgit.FreeBSD.org/src/commit/?id=b47f52ca4197257dee5e174fcbf7c5e6da7dcddc commit b47f52ca4197257dee5e174fcbf7c5e6da7dcddc Author: Minsoo Choo AuthorDate: 2026-08-24 02:25:36 +0000 Commit: Minsoo Choo CommitDate: 2026-10-02 15:34:31 +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 a77099296463..2f6719f4a58e 100644 --- a/sys/kern/sched_4bsd.c +++ b/sys/kern/sched_4bsd.c @@ -503,11 +503,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) @@ -543,6 +538,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;