Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Apr 2016 18:53:14 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r298754 - head/sys/dev/acpica
Message-ID:  <201604281853.u3SIrEMG036589@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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]);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604281853.u3SIrEMG036589>