summaryrefslogtreecommitdiff
path: root/sys/arch/zaurus
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-08-31 17:13:49 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-08-31 17:13:49 +0000
commit9da4ff9be0005fda5ba6d021ccff292caaca62f6 (patch)
treeb3bdf7cd5c66003daeb0f71ac899d004c887677e /sys/arch/zaurus
parentf4451ac9824b3e8c645bc2be6cfca6659bf11fcc (diff)
Add DVACT_QUIECE support. This is called before splhigh() and before
DVACT_SUSPEND, therefore DVACT_QUIECE can do standard sleeping operations to get ready. Discussed quite a while back with kettenis and jakemsr, oga suddenly needed it as well and wrote half of it, so it was time to finish it. proofread by miod.
Diffstat (limited to 'sys/arch/zaurus')
-rw-r--r--sys/arch/zaurus/dev/zaurus_apm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/zaurus/dev/zaurus_apm.c b/sys/arch/zaurus/dev/zaurus_apm.c
index 9cd9578ecb9..976a95db3b3 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.18 2010/08/30 21:37:53 deraadt Exp $ */
+/* $OpenBSD: zaurus_apm.c,v 1.19 2010/08/31 17:13:46 deraadt Exp $ */
/*
* Copyright (c) 2005 Uwe Stuehler <uwe@bsdx.de>
@@ -569,6 +569,7 @@ zapm_suspend(struct pxa2x0_apm_softc *pxa_sc)
struct zapm_softc *sc = (struct zapm_softc *)pxa_sc;
bufq_quiesce();
+ config_suspend(TAILQ_FIRST(&alldevs), DVACT_QUIESCE);
/* Poll in suspended mode and forget the discharge timeout. */
sc->sc_suspended = 1;