summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpi_x86.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/acpi/acpi_x86.c')
-rw-r--r--sys/dev/acpi/acpi_x86.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/dev/acpi/acpi_x86.c b/sys/dev/acpi/acpi_x86.c
index dd7d9a54bb1..de9a7373210 100644
--- a/sys/dev/acpi/acpi_x86.c
+++ b/sys/dev/acpi/acpi_x86.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi_x86.c,v 1.4 2022/02/15 02:29:23 deraadt Exp $ */
+/* $OpenBSD: acpi_x86.c,v 1.5 2022/02/15 02:38:17 deraadt Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -140,6 +140,8 @@ sleep_resume(void *v)
{
struct acpi_softc *sc = v;
+ acpibtn_disable_psw(); /* disable _LID for wakeup */
+
/* 3rd resume AML step: _TTS(runstate) */
if (aml_node_setval(sc, sc->sc_tts, sc->sc_state) != 0)
return (EINVAL);
@@ -162,13 +164,6 @@ suspend_finish(void *v)
}
void
-disable_lid_wakeups(void *v)
-{
- acpibtn_disable_psw(); /* disable _LID for wakeup */
-
-}
-
-void
display_suspend(void *v)
{
#if NWSDISPLAY > 0