]> Zhao Yanbai Git Server - minix.git/commitdiff
No need to scan devices in PIC mode
authorTomas Hruby <tom@minix3.org>
Wed, 22 Sep 2010 08:01:43 +0000 (08:01 +0000)
committerTomas Hruby <tom@minix3.org>
Wed, 22 Sep 2010 08:01:43 +0000 (08:01 +0000)
drivers/acpi/acpi.c

index bac095b6097372f623540c8152a1cb1c8b7c1063..5a061d6fa19763e678c25f1f35f3b1b62cdf1e2d 100644 (file)
@@ -178,7 +178,11 @@ PRIVATE ACPI_STATUS add_pci_dev(ACPI_HANDLE handle,
 
 PRIVATE void scan_devices(void)
 {
-       ACPI_STATUS(status);
+       ACPI_STATUS status;
+
+       /* do not scan devices in PIC mode */
+       if (!machine.apic_enabled)
+               return;
        
        /* get the root first */
        status = AcpiGetDevices("PNP0A03", add_pci_root_dev, NULL, NULL);