summaryrefslogtreecommitdiff
path: root/sys/arch/zaurus/dev
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/zaurus/dev
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/zaurus/dev')
-rw-r--r--sys/arch/zaurus/dev/zaurus_apm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/zaurus/dev/zaurus_apm.c b/sys/arch/zaurus/dev/zaurus_apm.c
index 7c026d7c513..431aa28a1b2 100644
--- a/sys/arch/zaurus/dev/zaurus_apm.c
+++ b/sys/arch/zaurus/dev/zaurus_apm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: zaurus_apm.c,v 1.21 2012/10/08 21:47:50 deraadt Exp $ */
+/* $OpenBSD: zaurus_apm.c,v 1.22 2012/10/17 22:49:27 deraadt Exp $ */
/*
* Copyright (c) 2005 Uwe Stuehler <uwe@bsdx.de>
@@ -655,6 +655,10 @@ zapm_poweroff(void)
s = splhigh();
config_suspend(TAILQ_FIRST(&alldevs), DVACT_SUSPEND);
+ /* 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;