Author: jhb
Date: Thu Apr 28 18:53:14 2016
New Revision: 298754
URL: https://svnweb.freebsd.org/changeset/base/298754

Log:
  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

Modified:
  head/sys/dev/acpica/acpi_cpu.c

Modified: head/sys/dev/acpica/acpi_cpu.c
==============================================================================
--- head/sys/dev/acpica/acpi_cpu.c      Thu Apr 28 18:41:55 2016        
(r298753)
+++ head/sys/dev/acpica/acpi_cpu.c      Thu Apr 28 18:53:14 2016        
(r298754)
@@ -429,7 +429,8 @@ acpi_cpu_postattach(void *unused __unuse
     }
     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]);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to