From 99cb7bda9623addd78ed184c32dbc8f948372a96 Mon Sep 17 00:00:00 2001 From: jsg Date: Tue, 23 Feb 2021 00:03:01 +0000 Subject: [PATCH] remove unused acpiec_lock() acpiec_unlock() functions ok kettenis@ pirofti@ --- sys/dev/acpi/acpiec.c | 29 +---------------------------- 1 file changed, 1 insertion(+), 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 * @@ -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; -} -- 2.20.1