summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
Diffstat (limited to 'kern')
-rw-r--r--kern/kmem.c14
-rw-r--r--kern/kmem.h11
2 files changed, 9 insertions, 16 deletions
diff --git a/kern/kmem.c b/kern/kmem.c
index 2718c09e..c8c55579 100644
--- a/kern/kmem.c
+++ b/kern/kmem.c
@@ -1073,21 +1073,17 @@ kmem_cache_info(struct kmem_cache *cache)
}
void __init
-kmem_bootstrap(void)
+kmem_setup(void)
{
+ struct kmem_cpu_pool_type *cpu_pool_type;
+ char name[KMEM_NAME_SIZE];
+ size_t i, size;
+
/* Make sure a bufctl can always be stored in a buffer */
assert(sizeof(union kmem_bufctl) <= KMEM_ALIGN_MIN);
list_init(&kmem_cache_list);
/* mutex_init(&kmem_cache_list_mutex); */
-}
-
-void __init
-kmem_setup(void)
-{
- struct kmem_cpu_pool_type *cpu_pool_type;
- char name[KMEM_NAME_SIZE];
- size_t i, size;
for (i = 0; i < ARRAY_SIZE(kmem_cpu_pool_types); i++) {
cpu_pool_type = &kmem_cpu_pool_types[i];
diff --git a/kern/kmem.h b/kern/kmem.h
index 169497c2..98306fae 100644
--- a/kern/kmem.h
+++ b/kern/kmem.h
@@ -273,14 +273,11 @@ void kmem_cache_free(struct kmem_cache *cache, void *obj);
void kmem_cache_info(struct kmem_cache *cache);
/*
- * Early initialization of the kernel memory allocator.
- *
- * Once this function returns, caches can be initialized.
- */
-void kmem_bootstrap(void);
-
-/*
* Set up the kernel memory allocator module.
+ *
+ * This function should only be called by the VM system. Once it returns,
+ * caches can be initialized, but those using the default backend can only
+ * operate once the VM system is sufficiently ready.
*/
void kmem_setup(void);