summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_kern.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2011-10-27 16:39:17 +0000
committeralc <alc@FreeBSD.org>2011-10-27 16:39:17 +0000
commit841afea2d9f7c1247e3fb6f7ea594619c4a067c0 (patch)
treedf4b3a31e6e696440d5b0fb21f80d8a64699e648 /sys/vm/vm_kern.c
parent315841e3acfb0734bb338e0d4b4e13c891f900e8 (diff)
downloadFreeBSD-src-841afea2d9f7c1247e3fb6f7ea594619c4a067c0.zip
FreeBSD-src-841afea2d9f7c1247e3fb6f7ea594619c4a067c0.tar.gz
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.
Diffstat (limited to 'sys/vm/vm_kern.c')
-rw-r--r--sys/vm/vm_kern.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c
index 24c2448..2c23c48 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);
OpenPOWER on IntegriCloud