diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-11-29 11:57:28 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-11-29 11:57:28 +0000 |
commit | 5b4ffbc90f519b7ce73019baa7e38465063d3119 (patch) | |
tree | 4695dd015570f16f04f22cc38a3a7f9b15591879 /sys | |
parent | 0eb525a2ac1464065fbeae72d839f9a279cdd90c (diff) |
Only establish acpi interrupt if ACPI_ENABLE.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/amd64/acpi_machdep.c | 4 |
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 } |