-/* $OpenBSD: apm.c,v 1.12 2022/02/11 01:55:12 deraadt Exp $ */
+/* $OpenBSD: apm.c,v 1.13 2022/02/15 02:38:16 deraadt Exp $ */
/*-
* Copyright (c) 2001 Alexander Guy. All rights reserved.
#endif
}
-void
-disable_lid_wakeups(void *v)
-{
-}
-
#endif /* SUSPEND */
-/* $OpenBSD: apm.c,v 1.28 2022/02/12 16:22:40 deraadt Exp $ */
+/* $OpenBSD: apm.c,v 1.29 2022/02/15 02:38:17 deraadt Exp $ */
/*-
* Copyright (c) 2001 Alexander Guy. All rights reserved.
{
}
-void
-disable_lid_wakeups(void *v)
-{
-}
#endif /* SUSPEND */
-/* $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>
{
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);
acpi_addtask(sc, acpi_sleep_task, sc, sc->sc_state);
}
-void
-disable_lid_wakeups(void *v)
-{
- acpibtn_disable_psw(); /* disable _LID for wakeup */
-
-}
-
void
display_suspend(void *v)
{
-/* $OpenBSD: subr_suspend.c,v 1.4 2022/02/13 15:56:55 deraadt Exp $ */
+/* $OpenBSD: subr_suspend.c,v 1.5 2022/02/15 02:38:18 deraadt Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
intr_enable();
splx(s);
- disable_lid_wakeups(v);
-
inittodr(gettime());
sleep_resume(v);
-/* $OpenBSD: device.h,v 1.58 2022/02/11 01:55:12 deraadt Exp $ */
+/* $OpenBSD: device.h,v 1.59 2022/02/15 02:38:18 deraadt Exp $ */
/* $NetBSD: device.h,v 1.15 1996/04/09 20:55:24 cgd Exp $ */
/*
void display_suspend(void *v);
void display_resume(void *v);
void suspend_finish(void *v);
-void disable_lid_wakeups(void *v);
struct device *device_mainbus(void);
struct device *device_mpath(void);