diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2012-10-17 22:49:28 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2012-10-17 22:49:28 +0000 |
commit | 77a1d8012448bc33a509fcd370e95bb74dfa4f74 (patch) | |
tree | 156130ad564a5c32014851a47d33cad4a785dcb4 /sys/arch/amd64 | |
parent | 77b673b688f93c7f733ac2d783628f3f104921da (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.c | 6 |
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; |