summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2014-07-12 09:02:25 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2014-07-12 09:02:25 +0000
commit06d0def6503aa8974f47da73e4a2d8e5c8d5f6a9 (patch)
tree72e75a43d527be1f1d68db34b0518c51e0b0ea37 /sys/dev
parent174b1784c199d956de34ec740a5a0637ff07f587 (diff)
Add a function to drop all clean pages on the page daemon queues and call
it when we hibernate. ok mlarkin@, miod@, deraadt@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpi/acpi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index b6a5c155c66..b680f28487b 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.263 2014/07/11 08:18:31 guenther Exp $ */
+/* $OpenBSD: acpi.c,v 1.264 2014/07/12 09:02:24 kettenis Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -2117,8 +2117,10 @@ acpi_sleep_state(struct acpi_softc *sc, int state)
goto fail_quiesce;
#ifdef HIBERNATE
- if (state == ACPI_STATE_S4)
+ if (state == ACPI_STATE_S4) {
+ uvmpd_hibernate();
hibernate_suspend_bufcache();
+ }
#endif /* HIBERNATE */
bufq_quiesce();