From nobody Fri Jun 9 19:58:19 2023 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 4QdBhq33Hlz4cK5g; Fri, 9 Jun 2023 19:58: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QdBhq2B3Qz4KCf; Fri, 9 Jun 2023 19:58:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686340699; 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=Yoi0R3Yusbsr9EqqVPXw2Hnb1GVMTlkRBpHAc7rTZ1A=; b=xz5c4e0Di9LjujOQ+x2hmP6fFVhFo8r7w/Krbmf4pewIM+rafMqYNsFD73kS4pqfJJRmv+ b/AghFQHcXIGGAU1GJj8O0m3y0GA6RdIWcJE04EjaCBX6bqMolE160PnoVNBIsid+Dnnpt gdl89d/+zmr2Pe+wjuf0oZaTKPoD5kilUSt8o/rX7+KyOBc5jk+THsBiDctuUmA0CoSfC/ mncwCWok1p2LRXraYeyJnzay0kxcNp0ziN9lbS15jSWqGknzAcr6dtEyrmbqPtjulRwOmt 0g5iz/0HYnJjyRm+ZoV1q/DKO2gGszCeVUaKYHqGTc/h3Z2eFJqq7jpGJSsBUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686340699; 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=Yoi0R3Yusbsr9EqqVPXw2Hnb1GVMTlkRBpHAc7rTZ1A=; b=OLqjS8GS17HPn6jNulFaE9GrYSo5MG4lNxeeonI/MCOqe1M0avz57tuFzM4A3EIDU6wdVY SRnEI75hNlKEcLZQ7toWvbL8RC+3b/l6duMTkxYU0YfHHQW8ArYreAaCoHZnkOOrAXFOgF 0gxkIy/zizyRlmADRbgA42el4pxno24ATRTpQ8Lwp53Rhal52owlXhElLnDSBYZW0Rjvzc BBUNn9qHlmujqw4ANTolWgr6KYIcS+njAMnMuE78ZUbHTAN/X3Y+5Ase6jqdbXjaVN4uQI mzHeaLwJ9ImyGob8ix1kUqXc+Vz0xJAkdRAvcyJo12lq/0LCILs1ThhyXq2xww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686340699; a=rsa-sha256; cv=none; b=avdmR5xMmd3P9Fx5kJj/Yu7OP60IZT5+HppG3OpjRYYwI69ZZ5LblLZ6IBYoPTL+UWN8wZ ZTGjuJxfjIzU2xZHfytQjAmmt1tBP5YDGL/Y7OiZ3fjN+JqqjpyX3E71xerQlZisC8RE4B Q0ZZoE2QOUg1AAl8B3/6jRqJAFwuHHb4MJ+wuSyCj0PNcuDoGmr/VKBVFRF81ydQnnmjG0 nvrsr8gXwKpUugs7bdHRK4JZthyD2/OFZw3Yi3PsWP+/gADWcKRBKlUZHZ8IhO67gUPnNA UXFlOJhrSW/iVaoW1sIsHCDSY7MMzC9SaYQO8nvcncOztjSHmri7ve1aWQOEug== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QdBhq1BPRzp02; Fri, 9 Jun 2023 19:58:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 359JwJ75072359; Fri, 9 Jun 2023 19:58:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 359JwJZR072358; Fri, 9 Jun 2023 19:58:19 GMT (envelope-from git) Date: Fri, 9 Jun 2023 19:58:19 GMT Message-Id: <202306091958.359JwJZR072358@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: e61a69e88a03 - stable/13 - ofw_cpu: quiet secondary CPU devices 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: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org 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/stable/13 X-Git-Reftype: branch X-Git-Commit: e61a69e88a03f4f4fb547c867a8953b4bb4ddfea Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=e61a69e88a03f4f4fb547c867a8953b4bb4ddfea commit e61a69e88a03f4f4fb547c867a8953b4bb4ddfea Author: Mitchell Horne AuthorDate: 2023-05-24 13:27:55 +0000 Commit: Mitchell Horne CommitDate: 2023-06-09 19:48:06 +0000 ofw_cpu: quiet secondary CPU devices We already do plenty to announce the different CPUs in dmesg. Follow the ACPI CPU strategy of reporting the first CPU device, but quieting the rest for non-verbose boot. This cuts down slightly on dmesg output. Reviewed by: manu, jhb MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D40243 (cherry picked from commit 08637d5d1580af743f4ed6504104d038e017f918) --- sys/dev/ofw/ofw_cpu.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/dev/ofw/ofw_cpu.c b/sys/dev/ofw/ofw_cpu.c index 832b3dd54565..714ecadc5c59 100644 --- a/sys/dev/ofw/ofw_cpu.c +++ b/sys/dev/ofw/ofw_cpu.c @@ -196,6 +196,11 @@ ofw_cpu_probe(device_t dev) return (ENXIO); device_set_desc(dev, "Open Firmware CPU"); + if (!bootverbose && device_get_unit(dev) != 0) { + device_quiet(dev); + device_quiet_children(dev); + } + return (0); }