From 78d2549fcc7ccef17705243f56b8c0c8ef1cc341 Mon Sep 17 00:00:00 2001 From: Mike Larkin Date: Sat, 9 Jul 2011 03:10:28 +0000 Subject: 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 --- sys/arch/i386/i386/hibernate_machdep.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/arch') 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(); } -- cgit v1.2.3