diff options
author | 2006-11-29 11:57:27 +0000 | |
---|---|---|
committer | 2006-11-29 11:57:27 +0000 | |
commit | 8131f57fc61354a4586b3415c37d3e47eb1b4f88 (patch) | |
tree | 1ac3c644fe28251bdca6e6886feaa3fd6068346a | |
parent | Only establish acpi interrupt if ACPI_ENABLE. (diff) | |
download | wireguard-openbsd-8131f57fc61354a4586b3415c37d3e47eb1b4f88.tar.xz wireguard-openbsd-8131f57fc61354a4586b3415c37d3e47eb1b4f88.zip |
Only establish acpi interrupt if ACPI_ENABLE.
-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 } |