mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
2357dac430
commit
8d07a66d77
1 changed files with 2 additions and 1 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue