Date: Fri, 9 Jun 2023 19:58:19 GMT From: Mitchell Horne <mhorne@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: e61a69e88a03 - stable/13 - ofw_cpu: quiet secondary CPU devices Message-ID: <202306091958.359JwJZR072358@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=e61a69e88a03f4f4fb547c867a8953b4bb4ddfea commit e61a69e88a03f4f4fb547c867a8953b4bb4ddfea Author: Mitchell Horne <mhorne@FreeBSD.org> AuthorDate: 2023-05-24 13:27:55 +0000 Commit: Mitchell Horne <mhorne@FreeBSD.org> 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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306091958.359JwJZR072358>