From nobody Fri Sep 18 14:14:53 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 4hmZQ60sykz6sWW6 for ; Fri, 18 Sep 2026 14:14:54 +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 4hmZQ54l8fz4jR6 for ; Fri, 18 Sep 2026 14:14:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789740893; 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=c+s040gOuZUskOKIcQ51UWvwuToHE3w7drTC1l/LUk4=; b=uLnBk8hQobJh66bkogFT/EVVp0+vr6YKXoOfJs5SC7seGlZH5sfDmG9bs6+vpFAuFGd7xT GrkbWet43UTFj3UIoLODdrkxDhFCYJKEWgsQDgJCUTeLzai7BwVHAfEyX4e6kKWbIvL4jJ JRF7WgXSkrmFTXRGI4rBpupNWsXlCFUG3xMrbHI2rVVYmqqYIVY+NJKOWdWqCNNuF8YoIC X+gvk2zfVbWo62ezP1McqGH8NEaQ8Y9l6GETcJabmE9PMUFa1IxBoB/CWF58SwRw1t1BrY dPR//UWcBp3wsOxgrkGp2BBqFdT78dg4mL1ehORLtK3u9lxG/f5kb3qKX8BG3A== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789740893; b=Tzh8tm22Voa+CO2zxNRR8Qtzpm4ic30VVX/LwOzfLuN1XMh36ytb4UR6KQD397erUPGLjZ kFusVnHDmErGBFqOgs7lo+bnl7ONgaK+uFlXXLCWehHy3OT2rbvMn4NXigwPgFqnpu5tz0 omT+CR79oQmGc075tlDGTRqCbTBmPAL4P1ooHYJ7kh9GMXxEhZ1ig1B7XOvK6X8WHGE/hV 1EcAlXSGgV7yuUSOrbyH1bK9fi+lMrQa99acpHb5NmuXlNPZVAvDdbU++hHDqIlR8yRjyb PKEeZChosqgem3iNyMpoLwY1iPtNL9n9jThj8jHSwlIIDwbj2DgHkY84oydf5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789740893; 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=c+s040gOuZUskOKIcQ51UWvwuToHE3w7drTC1l/LUk4=; b=x33C3GXHe9W3EfRkIu1179/+0iH8JyX7lUhWwLE37o/Yo6HVGNi/2/T/pRfjCSU55gz6Lz i5P7NAkIO/uyDXdxckWfdpt7FePvPHczRK5n5WiuDIuspdJL9ZiFQqPjoV7VG2961Bici1 qZO0EVMXxdw9lW/ndjn+pVGv9i6dqdBFcBCKvfthGtajpswyNp6gXm6A2N5+ldfcP9V756 gNl9jggNkYJwFL2vMs7Hilc0rb9eSTH+KeI1AVFU5w+LOSp4fDFSVL5/QrxYrynaKms+1d uVANKLE5qc5wVPWYFbwwqLxdiO7aG1vgofURkv2QZZhp25/NDd8MJxb/lfSAMA== 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 4hmZQ53g5bzLpG for ; Fri, 18 Sep 2026 14:14:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 44a03 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 18 Sep 2026 14:14:53 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Minsoo Choo Subject: git: 351f6733180c - main - sched_4bsd: fix comment in maybe_preempt() 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/main X-Git-Reftype: branch X-Git-Commit: 351f6733180cebdc83585f9a00677f4998f6c6f1 Auto-Submitted: auto-generated Date: Fri, 18 Sep 2026 14:14:53 +0000 Message-Id: <6aad475d.44a03.8900499@gitrepo.freebsd.org> The branch main has been updated by mchoo: URL: https://cgit.FreeBSD.org/src/commit/?id=351f6733180cebdc83585f9a00677f4998f6c6f1 commit 351f6733180cebdc83585f9a00677f4998f6c6f1 Author: Minsoo Choo AuthorDate: 2026-08-24 02:25:36 +0000 Commit: Minsoo Choo CommitDate: 2026-09-18 14:14:13 +0000 sched_4bsd: fix comment in maybe_preempt() The comment says the new thread's priority is not a realtime priority while the code states pri > PRI_MAX_ITHD which is interrupt priorities not realtime. Reviewed by: olce Approved by: olce (mentor) MFC after: 2 weeks Sponsored by: FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D59402 --- sys/kern/sched_4bsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c index 4db2364785f6..a77099296463 100644 --- a/sys/kern/sched_4bsd.c +++ b/sys/kern/sched_4bsd.c @@ -345,7 +345,7 @@ maybe_preempt(struct thread *td) * out anyways, so there's no point in preempting. If we did, * the current thread would not be properly resumed as well, so * just avoid that whole landmine. - * - If the new thread's priority is not a realtime priority and + * - If the new thread's priority is not an interrupt priority and * the current thread's priority is not an idle priority and * FULL_PREEMPTION is disabled. *