From: Tomas Hruby Date: Wed, 22 Sep 2010 08:01:43 +0000 (+0000) Subject: No need to scan devices in PIC mode X-Git-Tag: v3.2.0~821 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=b0572bfd1e5a19d0c91d8830f009e1319e6ceb58;p=minix.git No need to scan devices in PIC mode --- diff --git a/drivers/acpi/acpi.c b/drivers/acpi/acpi.c index bac095b60..5a061d6fa 100644 --- a/drivers/acpi/acpi.c +++ b/drivers/acpi/acpi.c @@ -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);