mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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