From nobody Wed May 24 13:28:56 2023 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 4QRBpw3Yqbz4ChwG; Wed, 24 May 2023 13:28: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QRBpw2xgtz3h3f; Wed, 24 May 2023 13:28:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684934936; 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=LV6WC50zDd5Ok0pt1MncQPkD76nnKlgdH182omnVDSI=; b=Rl+UgAJuFjZQVxXKiLQ3aRRguvjE4R7qkSEJz4oMHHZXTq9+WDQNt4/8cRCOxWPUBIXJpL lgKx1xVsuToW3664wGoAM4/kxw4/nITkltyPDFu/14aC+J9fe40HtNjD99iMrO2sqOhbcR xe476EBDelb+acjhxOmB4aQ9FL9VeohTunr/LVuReZOLa3A1bd678kl+D/nW3ll6zXMlOK YJ3JmjZGQnf6oc7Wym8h02RTkpzGplZL1EErU4No79zQfKwPyd/Ki4npeLYIhmtGIwB186 56BkH7iW8N1Zd2ABl5OLIvjHq3BaEFz5fFgfhbig1uemnV0Nr5Y9FSM8WxmzNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684934936; 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=LV6WC50zDd5Ok0pt1MncQPkD76nnKlgdH182omnVDSI=; b=nN1dmY2fh5f5EQnVmfc8/0LQ7yQCJVI20zcOl+88Ip5QiI4IRlVZH1qs1KQD7VygPTchyt ens/856e7yLZHyIuqOEz6VPf0ekbq60g8uTlgfy69kJyLgmzhyxXRG3RXFfNBQtbcY4CI3 Mgh23A0MdzpwQC/LWuJvd58geirItRBaCAkuNFKpauDdObH/bZN/rMazXHtFZ/wqE3MMPK 8zf1Adn+O9IYA/XOBmdfjh7gLzCqsH2ueY660puRgb4ej8hHabYX3hM85FG6uEkPixFPin r5MGBVFSF5bSGpl7Wno5d7nhcyhPYWQ/y8q8S53RDVY9+c0G44OglJmWWKOrhQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684934936; a=rsa-sha256; cv=none; b=RZGN7oiIJIjXbyQmZsNKY/IRgBKNFXBW1GsPHpsTvAdKjrONWKphwVa+emiF4P5BgR/zQR YJL/JmgDgyIWvEh1dN3uBrhP7RqFRvTbDpQGcM9qfm8Hvt/QjVyP09n4XhWeUbASynM5o3 LnYH0OtW+MxDU5yH//3AOC9NLN8iribtFSiEIrYceH5/fZgyi52mmUChd96WqJhQD/rJHO YSFvkDrqCvfR8utEIbG4xkBmoHllK2Q1DhIgD62tyApc5Q939Yvoe1CMYsde4Wv7GIbDGP OwDlDKIfZkvxQc0PgICehx/b9Sd+tlX6b4UdmQmxFOJe/stNW8S+228rX2LTvQ== 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 4QRBpw1zbWzkJM; Wed, 24 May 2023 13:28:56 +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 34ODSuQL090099; Wed, 24 May 2023 13:28:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34ODSu19090098; Wed, 24 May 2023 13:28:56 GMT (envelope-from git) Date: Wed, 24 May 2023 13:28:56 GMT Message-Id: <202305241328.34ODSu19090098@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mitchell Horne Subject: git: 08637d5d1580 - main - ofw_cpu: quiet secondary CPU devices 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/main X-Git-Reftype: branch X-Git-Commit: 08637d5d1580af743f4ed6504104d038e017f918 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=08637d5d1580af743f4ed6504104d038e017f918 commit 08637d5d1580af743f4ed6504104d038e017f918 Author: Mitchell Horne AuthorDate: 2023-05-24 13:27:55 +0000 Commit: Mitchell Horne CommitDate: 2023-05-24 13:28:26 +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 --- 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 d460060a7f6e..56e09125abbc 100644 --- a/sys/dev/ofw/ofw_cpu.c +++ b/sys/dev/ofw/ofw_cpu.c @@ -192,6 +192,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); }