diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2006-12-21 05:57:18 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2006-12-21 05:57:18 +0000 |
commit | 733ed3643d67aeb8a4cd5cd1805475c5be8b9108 (patch) | |
tree | c338c116fe94e7d90e80b5a7b26f5e354dd7cebe /sys | |
parent | 28e2f582b32dda0147c218c163f66db1440571a9 (diff) |
Remove some leftover acpiec gpe/interrupt code.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/acpi/acpi.c | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index bbae8ae99f7..12b4c78470c 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.71 2006/12/20 17:33:38 deraadt Exp $ */ +/* $OpenBSD: acpi.c,v 1.72 2006/12/21 05:57:17 marco Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> @@ -1053,9 +1053,8 @@ int acpi_interrupt(void *arg) { struct acpi_softc *sc = (struct acpi_softc *)arg; - u_int32_t ec, processed, sts, en, idx, jdx; + u_int32_t processed, sts, en, idx, jdx; - ec = 0; processed = 0; dnprintf(40, "ACPI Interrupt\n"); @@ -1089,26 +1088,13 @@ acpi_interrupt(void *arg) sc->sc_sleepbtn = 1; processed = 1; } -#if 0 - if (ec) { - if (acpiec_intr(sc->sc_ec)) - processed = 1; - - sts = sc->sc_ec_gpemask; - en = acpi_read_pmreg(sc, ACPIREG_GPE0_EN, 0); - - /* enable SCI once again */ - acpi_write_pmreg(sc, ACPIREG_GPE0_STS, 0, sts); - acpi_write_pmreg(sc, ACPIREG_GPE0_EN, 0, en | sts); - } -#endif if (processed) { sc->sc_wakeup = 0; wakeup(sc); } - return (processed | ec); + return (processed); } void @@ -1580,11 +1566,6 @@ acpi_isr_thread(void *arg) if (sc->gpe_table[gpe].handler) acpi_enable_onegpe(sc, gpe, 1); } -#if 0 - /* Enable EC interrupt */ - if (sc->sc_ec != NULL) - acpi_enable_gpe(sc, sc->sc_ec_gpemask); -#endif } while (thread->running) { |