diff options
author | 2014-07-12 09:02:24 +0000 | |
---|---|---|
committer | 2014-07-12 09:02:24 +0000 | |
commit | f5db0a1ca2f526df2d850deeebfc87e3caa07428 (patch) | |
tree | decde2f335abbad7f55e27a7bbe36d9b82b7c1a3 /sys/dev/acpi/acpi.c | |
parent | *** empty log message *** (diff) | |
download | wireguard-openbsd-f5db0a1ca2f526df2d850deeebfc87e3caa07428.tar.xz wireguard-openbsd-f5db0a1ca2f526df2d850deeebfc87e3caa07428.zip |
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/acpi/acpi.c')
-rw-r--r-- | sys/dev/acpi/acpi.c | 6 |
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(); |