diff options
author | alc <alc@FreeBSD.org> | 2004-01-06 20:52:55 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2004-01-06 20:52:55 +0000 |
commit | 90dc293a4102e924fdeaeaf8c6a6439787ec02b1 (patch) | |
tree | bd1934fe590ef738c7e196edfee76cf8d6f33f0e /sys/vm/vm_kern.c | |
parent | caf374ec700885cabe5ef9136f6eab289222614f (diff) | |
download | FreeBSD-src-90dc293a4102e924fdeaeaf8c6a6439787ec02b1.zip FreeBSD-src-90dc293a4102e924fdeaeaf8c6a6439787ec02b1.tar.gz |
Don't bother clearing PG_ZERO in contigmalloc1(), kmem_alloc(), or
kmem_malloc(). It serves no purpose.
Diffstat (limited to 'sys/vm/vm_kern.c')
-rw-r--r-- | sys/vm/vm_kern.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c index 4f6b984..c076492 100644 --- a/sys/vm/vm_kern.c +++ b/sys/vm/vm_kern.c @@ -206,7 +206,6 @@ kmem_alloc(map, size) pmap_zero_page(mem); mem->valid = VM_PAGE_BITS_ALL; vm_page_lock_queues(); - vm_page_flag_clear(mem, PG_ZERO); vm_page_wakeup(mem); vm_page_unlock_queues(); } @@ -406,7 +405,6 @@ retry: pmap_zero_page(m); m->valid = VM_PAGE_BITS_ALL; vm_page_lock_queues(); - vm_page_flag_clear(m, PG_ZERO); vm_page_unmanage(m); vm_page_unlock_queues(); } |