summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorAriane van der Steldt <ariane@cvs.openbsd.org>2011-07-08 21:02:50 +0000
committerAriane van der Steldt <ariane@cvs.openbsd.org>2011-07-08 21:02:50 +0000
commit20fa854463717f669224e76528973f2f52ad5319 (patch)
tree8bfb8a8be39216603b6ca4b7b3207dcaecc9ca14 /sys/kern
parent8da15dd837b06c6c3806f4ff006ed07de54071e3 (diff)
no reason to zero pages we are about to mark dirty
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_hibernate.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/kern/subr_hibernate.c b/sys/kern/subr_hibernate.c
index 7ac3bf26277..056eb882009 100644
--- a/sys/kern/subr_hibernate.c
+++ b/sys/kern/subr_hibernate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_hibernate.c,v 1.6 2011/07/08 21:00:53 ariane Exp $ */
+/* $OpenBSD: subr_hibernate.c,v 1.7 2011/07/08 21:02:49 ariane Exp $ */
/*
* Copyright (c) 2011 Ariane van der Steldt <ariane@stack.nl>
@@ -282,7 +282,6 @@ uvm_pmr_dirty_everything(void)
while ((pg = TAILQ_FIRST(&pmr->single[UVM_PMR_MEMTYPE_ZERO]))
!= NULL) {
uvm_pmr_remove(pmr, pg);
- uvm_pagezero(pg);
atomic_clearbits_int(&pg->pg_flags, PG_ZERO);
uvm_pmr_insert(pmr, pg, 0);
}
@@ -292,10 +291,8 @@ uvm_pmr_dirty_everything(void)
!= NULL) {
pg--; /* Size tree always has second page. */
uvm_pmr_remove(pmr, pg);
- for (i = 0; i < pg->fpgsz; i++) {
- uvm_pagezero(&pg[i]);
+ for (i = 0; i < pg->fpgsz; i++)
atomic_clearbits_int(&pg[i].pg_flags, PG_ZERO);
- }
uvm_pmr_insert(pmr, pg, 0);
}
}