diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2008-08-23 01:35:36 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2008-08-23 01:35:36 +0000 |
commit | 077618820d88f66a264ddabea47963250901f573 (patch) | |
tree | 9fb8e4fc34ad24ac9e9197cd70d6116a9a8a9b5c | |
parent | 88d03d8d09de22d526c80031adfd75fd1746f086 (diff) | |
download | FreeBSD-src-077618820d88f66a264ddabea47963250901f573.zip FreeBSD-src-077618820d88f66a264ddabea47963250901f573.tar.gz |
Allow the MD UMA allocator to use VM routines like kmem_*(). Existing code requires MD allocator to be available early in the boot process, before the VM is fully available. This defines a new VM define (UMA_MD_SMALL_ALLOC_NEEDS_VM) that allows an MD UMA small allocator to become available at the same time as the default UMA allocator.
Approved by: marcel (mentor)
-rw-r--r-- | sys/vm/uma_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c index a74ca32..bf00d56 100644 --- a/sys/vm/uma_core.c +++ b/sys/vm/uma_core.c @@ -1667,7 +1667,7 @@ uma_startup(void *bootmem, int boot_pages) bucket_init(); -#ifdef UMA_MD_SMALL_ALLOC +#if defined(UMA_MD_SMALL_ALLOC) && !defined(UMA_MD_SMALL_ALLOC_NEEDS_VM) booted = 1; #endif |