summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-04-28 18:53:14 +0000
committerjhb <jhb@FreeBSD.org>2016-04-28 18:53:14 +0000
commitad2faac8a70ca88c67f9300c30c013990bf8ab13 (patch)
tree0642ac540785a5d7fe7ef6fd4b158d4530420543 /sys/dev
parent8ce3c21c211a0bffd6ec5e2b282ba4dae407fd04 (diff)
downloadFreeBSD-src-ad2faac8a70ca88c67f9300c30c013990bf8ab13.zip
FreeBSD-src-ad2faac8a70ca88c67f9300c30c013990bf8ab13.tar.gz
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
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpica/acpi_cpu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c
index 625cd54..1a9c658 100644
--- a/sys/dev/acpica/acpi_cpu.c
+++ b/sys/dev/acpica/acpi_cpu.c
@@ -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]);
OpenPOWER on IntegriCloud