summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMike Larkin <mlarkin@cvs.openbsd.org>2011-07-09 03:10:28 +0000
committerMike Larkin <mlarkin@cvs.openbsd.org>2011-07-09 03:10:28 +0000
commit78d2549fcc7ccef17705243f56b8c0c8ef1cc341 (patch)
tree93f2c6d316fff0cf61f1e50260b3fc851fbddb15 /sys/arch
parent40c354d61763b4d2919ca2a8d30cd90f0d335b12 (diff)
Call (temporarily, until we have RLE page encoding) uvm_pmr_zero_everything
on suspend to ensure we get good zlib compression. Add MI signature block (hibernate_info) comparison routine
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/i386/hibernate_machdep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/hibernate_machdep.c b/sys/arch/i386/i386/hibernate_machdep.c
index cb7f194b1b6..96184a25c49 100644
--- a/sys/arch/i386/i386/hibernate_machdep.c
+++ b/sys/arch/i386/i386/hibernate_machdep.c
@@ -372,9 +372,11 @@ hibernate_suspend()
{
/*
* On i386, the only thing to do on hibernate suspend is
- * to write the image.
+ * to zero all the unused pages and write the image.
*/
+ uvm_pmr_zero_everything();
+
return hibernate_write_image();
}