-/* $OpenBSD: acpibtn.c,v 1.32 2010/08/06 21:12:27 marco Exp $ */
+/* $OpenBSD: acpibtn.c,v 1.33 2010/08/07 16:21:20 deraadt Exp $ */
/*
* Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
*
case 0x80:
sleep:
/* Request to go to sleep */
- if (acpi_record_event(sc->sc_acpi, APM_USER_SUSPEND_REQ)) {
+ if (acpi_record_event(sc->sc_acpi, APM_USER_SUSPEND_REQ))
sc->sc_acpi->sc_sleepmode = ACPI_STATE_S3;
- acpi_wakeup(sc->sc_acpi);
- }
break;
}
#endif /* SMALL_KERNEL */
-/* $OpenBSD: acpisony.c,v 1.2 2010/07/27 06:12:50 deraadt Exp $ */
+/* $OpenBSD: acpisony.c,v 1.3 2010/08/07 16:21:20 deraadt Exp $ */
/*
* Copyright (c) 2010 Paul Irofti <pirofti@openbsd.org>
*
case SONY_NOTIFY_SUSPEND_PRESSED:
DPRINTF(("suspend-pressed\n"));
#ifndef SMALL_KERNEL
- if (acpi_record_event(sc->sc_acpi, APM_USER_SUSPEND_REQ)) {
+ if (acpi_record_event(sc->sc_acpi, APM_USER_SUSPEND_REQ))
sc->sc_acpi->sc_sleepmode = ACPI_STATE_S3;
- acpi_wakeup(sc->sc_acpi);
- }
#endif
break;
case SONY_NOTIFY_SUSPEND_RELEASED:
-/* $OpenBSD: acpithinkpad.c,v 1.23 2010/07/06 20:14:17 deraadt Exp $ */
+/* $OpenBSD: acpithinkpad.c,v 1.24 2010/08/07 16:21:20 deraadt Exp $ */
/*
* Copyright (c) 2008 joshua stein <jcs@openbsd.org>
*
break;
case THINKPAD_BUTTON_SUSPEND:
#ifndef SMALL_KERNEL
- if (acpi_record_event(sc->sc_acpi, APM_USER_SUSPEND_REQ)) {
+ if (acpi_record_event(sc->sc_acpi, APM_USER_SUSPEND_REQ))
sc->sc_acpi->sc_sleepmode = ACPI_STATE_S3;
- acpi_wakeup(sc->sc_acpi);
- }
#endif
handled = 1;
break;