From: jsg Date: Tue, 23 Feb 2021 00:03:01 +0000 (+0000) Subject: remove unused acpiec_lock() acpiec_unlock() functions X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=99cb7bda9623addd78ed184c32dbc8f948372a96;p=openbsd remove unused acpiec_lock() acpiec_unlock() functions ok kettenis@ pirofti@ --- 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 * @@ -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; -}