From nobody Mon Jul 13 19:40:49 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 4gzXqD0f6sz6lhgk for ; Mon, 13 Jul 2026 19:40:56 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gzXqB6Dpqz3VcS for ; Mon, 13 Jul 2026 19:40:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1783971654; 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=SOsIJjLU94oLbmUi1LQlANCX0dfj2wGGWM08qPbtWBs=; b=haI+nAMhWcD8IrUzAqUzQ4PiYZYSRISb6UcGZzvRKrcqkBbopT3Z6Uo22GcGePC9MGnWe0 clOWfPYFvit1et6bj6tfTSCxsg7WlCjdvyyAtfAuPxx2PhkJgukoVcdYho5Lzors//ssQe rlvAYykfhxIFPLgyVi2J+KrtbKuWHKB3cAwhK1o2jsy+zlot1bBn2fGXjhI9+Q0IkGOKim 9tOW61NiIwDiHknMT7bHOT3vCU4+7pwx8ROges3U33RwT6k3sc7LCar9J71YYFZnDH45h0 m96xI9xl5CU3lRA9wLFK8Vmva3dvJpB5qJYg+PrqCk3FecvQxlhjFtWHH9x5Pw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1783971654; a=rsa-sha256; cv=none; b=gXNoryRHHMEsdrglrIuzyxCbSTV7JyGd8uOIq5t7L5TlMYtDsaoQTe3c+9aiG/0Nm6hDIF qmRPoerizWOU0VypeHb5a0SQiyMrxZGwv+3qk6WdQ/qySeqL+O8TBQPgV8PGUdVYCnCssp i9aCYR6hRM1prRJeKBBnUGTtFSmXZOYELE1gbmBoeETr3Hn41ahwppvRRlVTcKMuR+BRNE MqnA/8dq2eDYxZFtOuP+ZDC4zJpumTkozVSXy6vY67zvAaOmcaolbf2887zsvLSnlXa+5Q eqyd0yr9IFO7YPoniGgs3QmuDTDtBc2nF9zQ9ELG4azokA34W+vQYwnq20gPmw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1783971654; 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=SOsIJjLU94oLbmUi1LQlANCX0dfj2wGGWM08qPbtWBs=; b=ZdOMTlrCN7g+ci9K0z0b72kETOUBTUaTg68UQ9ZuT+d15FRhhux1b94cBOxoUL0KQzCjju JwM2y5LV7tCeg1xc2yLxVJhI9uFPt17GoewfZJ/UoQRm49q5mxvntxhK/exddQddAeFMOg mjWaAhn4mxmxxbyispKmqVA3+MOT9esfnPO/A8UJlGUKOkeclOI8CNb3NH9b0WhXAhoTKa jwPm7Cv05fj/pE5HxjKZEwTWL0epbtlecHNVD4IKP64h/dOLumV5qgq3JTEyXPPT4my1BJ cyktCft5COy6JfxZuBUapGrpf6JWeB8lJGScPQlMIVF+1yGmCxyzh03IMmvInA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gzXqB2RJyz1BHH for ; Mon, 13 Jul 2026 19:40:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 33c55 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 13 Jul 2026 19:40:49 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mitchell Horne Subject: git: 63d4f044225d - main - g_eli: better handling of absent/disabled CPUs 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: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 63d4f044225d1bb86767759b18c0ae63b25a9c03 Auto-Submitted: auto-generated Date: Mon, 13 Jul 2026 19:40:49 +0000 Message-Id: <6a553f41.33c55.7ebea4ed@gitrepo.freebsd.org> The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=63d4f044225d1bb86767759b18c0ae63b25a9c03 commit 63d4f044225d1bb86767759b18c0ae63b25a9c03 Author: Mitchell Horne AuthorDate: 2026-07-13 19:15:00 +0000 Commit: Mitchell Horne CommitDate: 2026-07-13 19:40:42 +0000 g_eli: better handling of absent/disabled CPUs Checking hlt_cpus_mask is a no-op, and the mask will be removed in the next commit. However, we can use the more recent CPU_ABSENT() macro to check the status. Reviewed by: olce MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D58157 --- sys/geom/eli/g_eli.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/sys/geom/eli/g_eli.c b/sys/geom/eli/g_eli.c index 7fca50e7635c..d302d84fc415 100644 --- a/sys/geom/eli/g_eli.c +++ b/sys/geom/eli/g_eli.c @@ -869,16 +869,6 @@ g_eli_access(struct g_provider *pp, int dr, int dw, int de) return (0); } -static int -g_eli_cpu_is_disabled(int cpu) -{ -#ifdef SMP - return (CPU_ISSET(cpu, &hlt_cpus_mask)); -#else - return (0); -#endif -} - static void g_eli_init_uma(void) { @@ -1095,7 +1085,7 @@ g_eli_create(struct gctl_req *req, struct g_class *mp, struct g_provider *bpp, threads = mp_ncpus; sc->sc_cpubind = (mp_ncpus > 1 && threads == mp_ncpus); for (i = 0; i < threads; i++) { - if (g_eli_cpu_is_disabled(i)) { + if (CPU_ABSENT(i)) { G_ELI_DEBUG(1, "%s: CPU %u disabled, skipping.", bpp->name, i); continue;