Only count CPU devices that are using the ACPI CPU driver.

Arguably we should only be doing the probe/attach to children of
these devices as well.

Tested by:	Michal Stanek <mst_semihalf.com> (arm64)
Differential Revision:	https://reviews.freebsd.org/D6133
This commit is contained in:
John Baldwin 2016-04-28 18:53:14 +00:00
parent 2357dac430
commit 8d07a66d77

View file

@ -429,7 +429,8 @@ acpi_cpu_postattach(void *unused __unused)
}
attached = 0;
for (i = 0; i < n; i++)
if (device_is_attached(devices[i]))
if (device_is_attached(devices[i]) &&
device_get_driver(devices[i]) == &acpi_cpu_driver)
attached = 1;
for (i = 0; i < n; i++)
bus_generic_probe(devices[i]);