From f620b5bf45ee2efd397800994ee33638cde5a52d Mon Sep 17 00:00:00 2001 From: Nathan Whitehorn Date: Sat, 23 Aug 2008 01:35:36 +0000 Subject: [PATCH] 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) --- sys/vm/uma_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c index a74ca32c7ca..bf00d56c713 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