mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-21 09:13:37 +00:00
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:
parent
6910e995d9
commit
f620b5bf45
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182028
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue