summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2012-10-17 22:49:28 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2012-10-17 22:49:28 +0000
commit77a1d8012448bc33a509fcd370e95bb74dfa4f74 (patch)
tree156130ad564a5c32014851a47d33cad4a785dcb4 /sys/arch/amd64
parent77b673b688f93c7f733ac2d783628f3f104921da (diff)
Document the 'boothowto hack' used to flag to (a few) DVACT_POWERDOWN
handlers how hard they should hit the hardware.
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/acpi_machdep.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/acpi_machdep.c b/sys/arch/amd64/amd64/acpi_machdep.c
index b255ee05580..99fe248dfcc 100644
--- a/sys/arch/amd64/amd64/acpi_machdep.c
+++ b/sys/arch/amd64/amd64/acpi_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi_machdep.c,v 1.50 2012/10/08 21:47:47 deraadt Exp $ */
+/* $OpenBSD: acpi_machdep.c,v 1.51 2012/10/17 22:49:27 deraadt Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
@@ -271,6 +271,10 @@ acpi_sleep_cpu(struct acpi_softc *sc, int state)
}
#endif
+ /* XXX
+ * Flag to disk drivers that they should "power down" the disk
+ * when we get to DVACT_POWERDOWN.
+ */
boothowto |= RB_POWERDOWN;
config_suspend(TAILQ_FIRST(&alldevs), DVACT_POWERDOWN);
boothowto &= ~RB_POWERDOWN;