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
This commit is contained in:
Mitchell Horne 2023-05-24 10:27:55 -03:00
parent 5edffecc4b
commit 08637d5d15

View File

@ -192,6 +192,11 @@ ofw_cpu_probe(device_t dev)
return (ENXIO); return (ENXIO);
device_set_desc(dev, "Open Firmware CPU"); device_set_desc(dev, "Open Firmware CPU");
if (!bootverbose && device_get_unit(dev) != 0) {
device_quiet(dev);
device_quiet_children(dev);
}
return (0); return (0);
} }