summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-10-02 23:31:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-10-02 23:31:35 +0000
commit4c1e959777802a68194431ffe5cdc15f539de132 (patch)
tree269033fd7807f11a69c69c31e9b98b1c33ad1e34 /sys/arch/i386
parent5f350d1fcac52f90c3748e7e05cf6ec11f50bc74 (diff)
turn off lid suspend if we doing halt -p
ok kettenis marco miod
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/machdep.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index d2da0fd83a7..fd7453aa2ae 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.484 2010/10/02 23:30:39 deraadt Exp $ */
+/* $OpenBSD: machdep.c,v 1.485 2010/10/02 23:31:34 deraadt Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -2403,6 +2403,9 @@ struct pcb dumppcb;
void
boot(int howto)
{
+ if (howto & RB_POWERDOWN)
+ lid_suspend = 0;
+
if (cold) {
/*
* If the system is cold, just halt, unless the user