diff options
author | Rui Paulo <rpaulo@FreeBSD.org> | 2015-03-26 05:20:18 +0000 |
---|---|---|
committer | Rui Paulo <rpaulo@FreeBSD.org> | 2015-03-26 05:20:18 +0000 |
commit | b575067a2181cf80ee847149abd4cf5dd66e8d18 (patch) | |
tree | 92c5408faaa3c63d3e4a5f564e23eaf8a9f1e6c9 /sys/vm/vm_page.c | |
parent | a756ffc9312f32cfb3a704c5ce0523652e4aeccf (diff) | |
download | src-b575067a2181cf80ee847149abd4cf5dd66e8d18.tar.gz src-b575067a2181cf80ee847149abd4cf5dd66e8d18.zip |
Add comments about CTLFLAG_RDTUN vs. TUNABLE_INT_FETCH.
Requested by: julian
Notes
Notes:
svn path=/head/; revision=280665
Diffstat (limited to 'sys/vm/vm_page.c')
-rw-r--r-- | sys/vm/vm_page.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index a764788f2b9e..64ca13075c65 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -349,6 +349,9 @@ vm_page_startup(vm_offset_t vaddr) /* * Allocate memory for use when boot strapping the kernel memory * allocator. + * + * CTFLAG_RDTUN doesn't work during the early boot process, so we must + * manually fetch the value. */ TUNABLE_INT_FETCH("vm.boot_pages", &boot_pages); new_end = end - (boot_pages * UMA_SLAB_SIZE); |