diff options
author | Alan Cox <alc@FreeBSD.org> | 2011-10-27 16:39:17 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2011-10-27 16:39:17 +0000 |
commit | 703dec68bfc40849f59f30d90a6ee4a081fe910b (patch) | |
tree | df4b3a31e6e696440d5b0fb21f80d8a64699e648 /sys/vm | |
parent | 982369192e473cd51a19d7e01826074bc665e8af (diff) | |
download | src-703dec68bfc40849f59f30d90a6ee4a081fe910b.tar.gz src-703dec68bfc40849f59f30d90a6ee4a081fe910b.zip |
Eliminate vestiges of page coloring in VM_ALLOC_NOOBJ calls to
vm_page_alloc(). While I'm here, for the sake of consistency, always
specify the allocation class, such as VM_ALLOC_NORMAL, as the first of
the flags.
Notes
Notes:
svn path=/head/; revision=226843
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_kern.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c index 24c24488a86e..2c23c48472d6 100644 --- a/sys/vm/vm_kern.c +++ b/sys/vm/vm_kern.c @@ -543,7 +543,7 @@ kmem_init_zero_region(void) * zeros, while not using much more physical resources. */ addr = kmem_alloc_nofault(kernel_map, ZERO_REGION_SIZE); - m = vm_page_alloc(NULL, OFF_TO_IDX(addr - VM_MIN_KERNEL_ADDRESS), + m = vm_page_alloc(NULL, 0, VM_ALLOC_NORMAL | VM_ALLOC_NOOBJ | VM_ALLOC_WIRED | VM_ALLOC_ZERO); if ((m->flags & PG_ZERO) == 0) pmap_zero_page(m); |