diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-07-20 12:23:03 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-07-20 12:23:03 +0000 |
commit | 7c54930736fb5d12651e9b204e8afb8123bf074d (patch) | |
tree | 8134b6717f7a1b0b0eda30112159c2d4ac669a32 /sys/arch/zaurus | |
parent | 6ae6938e07ea5887d5cef37a5c0c2513f7c4504d (diff) |
also use bufq_quiesce() when suspending, and bufq_restart() when resuming,
which will result in more stable filesystems during suspend
ok kettenis
Diffstat (limited to 'sys/arch/zaurus')
-rw-r--r-- | sys/arch/zaurus/dev/zaurus_apm.c | 6 |
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 87997e9f35c..422c53aba4a 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.15 2010/04/21 03:11:30 deraadt Exp $ */ +/* $OpenBSD: zaurus_apm.c,v 1.16 2010/07/20 12:23:02 deraadt Exp $ */ /* * Copyright (c) 2005 Uwe Stuehler <uwe@bsdx.de> @@ -22,6 +22,7 @@ #include <sys/timeout.h> #include <sys/conf.h> #include <sys/proc.h> +#include <sys/buf.h> #include <sys/sysctl.h> #include <arm/xscale/pxa2x0reg.h> @@ -567,6 +568,8 @@ zapm_suspend(struct pxa2x0_apm_softc *pxa_sc) { struct zapm_softc *sc = (struct zapm_softc *)pxa_sc; + bufq_quiesce(); + /* Poll in suspended mode and forget the discharge timeout. */ sc->sc_suspended = 1; timeout_del(&sc->sc_poll); @@ -631,6 +634,7 @@ zapm_resume(struct pxa2x0_apm_softc *pxa_sc) #endif } + bufq_restart(); return (wakeup); } |