diff options
-rw-r--r-- | sys/dev/acpi/acpiec.c | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/sys/dev/acpi/acpiec.c b/sys/dev/acpi/acpiec.c index 6c6a547423d..3d4c0902c05 100644 --- a/sys/dev/acpi/acpiec.c +++ b/sys/dev/acpi/acpiec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpiec.c,v 1.62 2020/08/26 03:29:06 visa Exp $ */ +/* $OpenBSD: acpiec.c,v 1.63 2021/02/23 00:03:01 jsg Exp $ */ /* * Copyright (c) 2006 Can Erkin Acar <canacar@openbsd.org> * @@ -57,9 +57,6 @@ void acpiec_get_events(struct acpiec_softc *); int acpiec_gpehandler(struct acpi_softc *, int, void *); -void acpiec_lock(struct acpiec_softc *); -void acpiec_unlock(struct acpiec_softc *); - /* EC Status bits */ #define EC_STAT_SMI_EVT 0x40 /* SMI event pending */ #define EC_STAT_SCI_EVT 0x20 /* SCI event pending */ @@ -525,27 +522,3 @@ acpiec_reg(struct acpiec_softc *sc) return (0); } - -void -acpiec_lock(struct acpiec_softc *sc) -{ - KASSERT(sc->sc_ecbusy == 0); - - sc->sc_ecbusy = 1; - - if (sc->sc_glk) { - acpi_glk_enter(); - } -} - -void -acpiec_unlock(struct acpiec_softc *sc) -{ - KASSERT(sc->sc_ecbusy == 1); - - if (sc->sc_glk) { - acpi_glk_leave(); - } - - sc->sc_ecbusy = 0; -} |