summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2006-11-29 11:57:28 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2006-11-29 11:57:28 +0000
commit5b4ffbc90f519b7ce73019baa7e38465063d3119 (patch)
tree4695dd015570f16f04f22cc38a3a7f9b15591879 /sys/arch/amd64
parent0eb525a2ac1464065fbeae72d839f9a279cdd90c (diff)
Only establish acpi interrupt if ACPI_ENABLE.
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/acpi_machdep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/acpi_machdep.c b/sys/arch/amd64/amd64/acpi_machdep.c
index 62603b4d3aa..9177b3954be 100644
--- a/sys/arch/amd64/amd64/acpi_machdep.c
+++ b/sys/arch/amd64/amd64/acpi_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi_machdep.c,v 1.4 2006/02/20 05:16:20 marco Exp $ */
+/* $OpenBSD: acpi_machdep.c,v 1.5 2006/11/29 11:57:27 kettenis Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
@@ -149,7 +149,9 @@ havebase:
void
acpi_attach_machdep(struct acpi_softc *sc)
{
+#ifdef ACPI_ENABLE
sc->sc_interrupt = intr_establish(sc->sc_fadt->sci_int, &i8259_pic,
sc->sc_fadt->sci_int, IST_LEVEL, IPL_TTY, acpi_interrupt, sc,
"acpi");
+#endif
}