From nobody Thu Dec 4 19:53:19 2025 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 4dMlYW5Yl4z6JdGP for ; Thu, 04 Dec 2025 19:53:19 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dMlYW3CN1z3t8G for ; Thu, 04 Dec 2025 19:53:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1764877999; 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=xn0x7x0WEP5zhh62HCq719MBkcCQ1qqYQvb3w8e9MkU=; b=qC5KeSbM0PgCiVpIv1l2IrpfA475bA3VZJzyhEeu7RAvAYKFHgc3MFTACNF2s2rss51+wX VP+FYZs5wpYe7kBo0p1HAmLQUUHhyU96Obe7G5cy9j2ny78VH0Lo8e8pYnkMLcxikK1pwC m8mWo/x+esjvKpXTq2fTmtnNCVR6yIilfHjUVacFNdla4Ez8vqQgmLET5htrXrPTrWa2Ow +pXPb94suenfCsmEDBmA/HLVsZWektO2GKwrjpyYlHJVnnj6BGdZcnVVmsoKGWmbcRt8fw Io6HLk7DcP1ijifL07qhOCwFmOcthuLzce15bFk0gFjQXDWSOLcHwvGG+mwY6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1764877999; 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=xn0x7x0WEP5zhh62HCq719MBkcCQ1qqYQvb3w8e9MkU=; b=pjIL7z9F4wLfMXNpeSQtEb4JnRNBKMOHuB8w4sV8kilBeeafCKFP6pgDqDN400rsCn6xGh UNP2B8sHbtwNpLaaO+2XbNmpl22YtX+zAAtcpc+QRw9M3zdowLNzzOz4WxeHqVl1dpL8ff iqsrSkOKT3ZMD3DZ4Svgf5d8Kiwe/jyGFRjxcBOW+2haPQnkM8tnR2ULqO+VNxAZRaMjpr cjaiyjoNkVoNLUY0QPNc4NdeEPOUUUjdfmBJXr/v0b5hIB7aIWVScrsBECkqMxsdThOsY6 vLC5dih+dpqqciz0rkI9P9uvkWmDf+Ga8iTCIpupEn1Wz3Md8Zs8cUIua6bhcw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1764877999; a=rsa-sha256; cv=none; b=tjsSd15ED2dW6YxNUvuk9fbmhDVud4hOamC5uZQKxw0vkCtmhhy4sd/tDZg1fDkGMBSS7a q+HYjqSLp8aPy5GucfeACxpgZChoLAmF3XoxxBFe5foPSqoDhRQ8LMPJWR5JPPNeZ+aMoF OocHMUB1EetYwyaqcUJe14Vr0hWhe3zDuN3+wLXNFUfPrmYxU0mbnc7qD621vnDuHrGjcv C2qsXRuBY7rAOwdY86LGWGRTou0ypPd35fZDIqphCkvPxNgo8d6pjX5cvM1p5IsBlfLsQg FPlRnOUbsyT1aeEnfULMr8XjCWrDl3DDAJGNP5Sjuw1z+GeBp+6DAjd4/f6Ahw== 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 4dMlYW2mGDzdC0 for ; Thu, 04 Dec 2025 19:53:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 2415c by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 04 Dec 2025 19:53:19 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 431b3b224db2 - main - thread0: Stop calling thread0 "swapper" 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 431b3b224db2a69d09c359ce1cfb37ba3da4705c Auto-Submitted: auto-generated Date: Thu, 04 Dec 2025 19:53:19 +0000 Message-Id: <6931e6af.2415c.264164fa@gitrepo.freebsd.org> The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=431b3b224db2a69d09c359ce1cfb37ba3da4705c commit 431b3b224db2a69d09c359ce1cfb37ba3da4705c Author: John Baldwin AuthorDate: 2025-12-04 19:52:59 +0000 Commit: John Baldwin CommitDate: 2025-12-04 19:52:59 +0000 thread0: Stop calling thread0 "swapper" Just leave it as "kernel". While here, replace "parked" with "-" (the typical wait channel for idle threads). Reviewed by: olce, kib, markj Differential Revision: https://reviews.freebsd.org/D54039 --- sys/kern/init_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 6612ac685936..a2898f75a795 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -336,7 +336,7 @@ mi_startup(void) * the need arises. */ for (;;) - tsleep(__builtin_frame_address(0), PNOLOCK, "parked", 0); + tsleep(__builtin_frame_address(0), PNOLOCK, "-", 0); } static void @@ -486,7 +486,7 @@ proc0_init(void *dummy __unused) schedinit(); /* scheduler gets its house in order */ /* - * Create process 0 (the swapper). + * Create process 0. */ LIST_INSERT_HEAD(&allproc, p, p_list); LIST_INSERT_HEAD(PIDHASH(0), p, p_hash); @@ -531,7 +531,7 @@ proc0_init(void *dummy __unused) LIST_INIT(&p->p_reaplist); strncpy(p->p_comm, "kernel", sizeof (p->p_comm)); - strncpy(td->td_name, "swapper", sizeof (td->td_name)); + strncpy(td->td_name, "kernel", sizeof (td->td_name)); callout_init_mtx(&p->p_itcallout, &p->p_mtx, 0); callout_init_mtx(&p->p_limco, &p->p_mtx, 0);