From: mlarkin Date: Wed, 28 Jul 2010 07:32:16 +0000 (+0000) Subject: Delay a little longer on suspend before giving up. Fixes machines that X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f4b995ab0fc4c31c9955644e7ef8cd4410352c47;p=openbsd Delay a little longer on suspend before giving up. Fixes machines that sometimes don't suspend because the sleep transition takes too long (symptoms like failing to sleep but the backlight stays on). ok deraadt@ --- diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index de3ebdb7320..ec5cfaa525a 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.195 2010/07/27 23:33:21 deraadt Exp $ */ +/* $OpenBSD: acpi.c,v 1.196 2010/07/28 07:32:16 mlarkin Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert * Copyright (c) 2005 Jordan Hargrave @@ -1728,7 +1728,7 @@ acpi_enter_sleep_state(struct acpi_softc *sc, int state) if ((rega & ACPI_PM1_WAK_STS) || (regb & ACPI_PM1_WAK_STS)) break; - DELAY(10); + DELAY(1000); } return (-1);