ACPI: use APIC model if APIC_IO enabled.
authorAlexander Polakov <polachok@gmail.com>
Fri, 16 Oct 2009 17:51:56 +0000 (21:51 +0400)
committerAlexander Polakov <polachok@gmail.com>
Fri, 16 Oct 2009 17:51:56 +0000 (21:51 +0400)
sys/platform/pc32/acpica5/acpi_machdep.c

index d17b8ac..36971cf 100644 (file)
@@ -55,7 +55,11 @@ static device_t      acpi_dev;
 uint32_t acpi_reset_video = 1;
 TUNABLE_INT("hw.acpi.reset_video", &acpi_reset_video);
 
+#ifdef APIC_IO
+static int intr_model = ACPI_INTR_APIC;
+#else
 static int intr_model = ACPI_INTR_PIC;
+#endif
 static struct apm_softc        apm_softc;
 
 static d_open_t apmopen;