summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2005-12-16 22:43:13 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2005-12-16 22:43:13 +0000
commit7cb529ed1028f0ffe06f88a33802476dd84400d3 (patch)
treeb60b463421b92dc51ea812b34fa478b2e86380c2 /sys/arch
parent3ee6ef67e8271bd77406ae874e21c85c9b1b7e2f (diff)
Add delay before powering down on acpi. Give the sync some extra time.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/i386/machdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index 71a90277048..45404f13716 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.335 2005/12/16 20:32:20 marco Exp $ */
+/* $OpenBSD: machdep.c,v 1.336 2005/12/16 22:43:12 marco Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -2326,6 +2326,7 @@ haltsys:
#if NACPI > 0
extern int acpi_s5;
+ delay(500000);
if (howto & RB_POWERDOWN || acpi_s5)
acpi_powerdown();
#endif