summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2010-08-29 02:02:25 +0000
committerderaadt <deraadt@openbsd.org>2010-08-29 02:02:25 +0000
commit2a88e5208f2226af98e1d9ba7e772201581ff456 (patch)
tree3a9929f608cfd0396cd141cd2674f2114e75135d
parenttypo (diff)
downloadwireguard-openbsd-2a88e5208f2226af98e1d9ba7e772201581ff456.tar.xz
wireguard-openbsd-2a88e5208f2226af98e1d9ba7e772201581ff456.zip
put the bufq_restart() in the right place, so that a 2nd resume works.
how did noone notice for so long? tsk, tsk, tsk. of course, I broke it. tested by jakemsr
-rw-r--r--sys/arch/arm/xscale/pxa2x0_apm.c5
-rw-r--r--sys/arch/zaurus/dev/zaurus_apm.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/arm/xscale/pxa2x0_apm.c b/sys/arch/arm/xscale/pxa2x0_apm.c
index a009324dc8d..02d5df269c6 100644
--- a/sys/arch/arm/xscale/pxa2x0_apm.c
+++ b/sys/arch/arm/xscale/pxa2x0_apm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pxa2x0_apm.c,v 1.32 2010/03/30 17:40:55 oga Exp $ */
+/* $OpenBSD: pxa2x0_apm.c,v 1.33 2010/08/29 02:02:25 deraadt Exp $ */
/*-
* Copyright (c) 2001 Alexander Guy. All rights reserved.
@@ -42,6 +42,7 @@
#include <sys/rwlock.h>
#include <sys/mount.h> /* for vfs_syncwait() */
#include <sys/proc.h>
+#include <sys/buf.h>
#include <sys/device.h>
#include <sys/fcntl.h>
#include <sys/ioctl.h>
@@ -338,6 +339,8 @@ apm_resume(struct pxa2x0_apm_softc *sc)
*/
/* XXX ifdef NPXAUDC > 0 */
bus_space_write_4(sc->sc_iot, sc->sc_pm_ioh, POWMAN_PSSR, PSSR_OTGPH);
+
+ bufq_restart();
#if NWSDISPLAY > 0
wsdisplay_resume();
#endif /* NWSDISPLAY > 0 */
diff --git a/sys/arch/zaurus/dev/zaurus_apm.c b/sys/arch/zaurus/dev/zaurus_apm.c
index 422c53aba4a..af4dd49511a 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.16 2010/07/20 12:23:02 deraadt Exp $ */
+/* $OpenBSD: zaurus_apm.c,v 1.17 2010/08/29 02:02:26 deraadt Exp $ */
/*
* Copyright (c) 2005 Uwe Stuehler <uwe@bsdx.de>
@@ -634,7 +634,6 @@ zapm_resume(struct pxa2x0_apm_softc *pxa_sc)
#endif
}
- bufq_restart();
return (wakeup);
}