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)
This commit is contained in:
Nathan Whitehorn 2008-08-23 01:35:36 +00:00
parent 6910e995d9
commit f620b5bf45
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182028

View file

@ -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