summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2010-05-24 11:18:51 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2010-05-24 11:18:51 +0000
commitf770f48daa13e70b6924f881733b0fe7819fd926 (patch)
tree5cd54d72a82528abebd2ba702cfd5544f320165b /sys
parent1dc785264146335f3d69d5c0a707eee1106e303b (diff)
Flush cache before suspend.
ok krw@, marco@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ata/wd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ata/wd.c b/sys/dev/ata/wd.c
index 2aa6eb13ab0..545236089f1 100644
--- a/sys/dev/ata/wd.c
+++ b/sys/dev/ata/wd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wd.c,v 1.81 2010/05/23 09:58:57 kettenis Exp $ */
+/* $OpenBSD: wd.c,v 1.82 2010/05/24 11:18:50 kettenis Exp $ */
/* $NetBSD: wd.c,v 1.193 1999/02/28 17:15:27 explorer Exp $ */
/*
@@ -392,6 +392,7 @@ wdactivate(struct device *self, int act)
*/
break;
case DVACT_SUSPEND:
+ wd_flushcache(wd, AT_POLL);
wd_standby(wd, AT_POLL);
break;
}