Use device_quiet_children to silence verbose CPU probe messages.

Have cpu0 be noisy, but all the other CPU devices be quiet on boot.
This commit is contained in:
Warner Losh 2018-05-07 21:09:17 +00:00
parent ad7142757b
commit 43d9cb5b74

View File

@ -308,6 +308,11 @@ acpi_cpu_probe(device_t dev)
acpi_set_private(dev, (void*)(intptr_t)cpu_id); acpi_set_private(dev, (void*)(intptr_t)cpu_id);
device_set_desc(dev, "ACPI CPU"); device_set_desc(dev, "ACPI CPU");
if (!bootverbose && device_get_unit(dev) != 0) {
device_quiet(dev);
device_quiet_children(dev);
}
return (0); return (0);
} }