summaryrefslogtreecommitdiff
path: root/kern/slab.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/slab.c')
-rw-r--r--kern/slab.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/kern/slab.c b/kern/slab.c
index d18c10b4..e5e44f40 100644
--- a/kern/slab.c
+++ b/kern/slab.c
@@ -151,11 +151,6 @@
#define KMEM_REDZONE_BYTE 0xbb
/*
- * Size of the VM submap from which default backend functions allocate.
- */
-#define KMEM_MAP_SIZE (128 * 1024 * 1024)
-
-/*
* Shift for the first kalloc cache size.
*/
#define KALLOC_FIRST_SHIFT 5
@@ -264,12 +259,6 @@ static unsigned int kmem_nr_caches;
static simple_lock_data_t __attribute__((used)) kmem_cache_list_lock;
/*
- * VM submap for slab caches.
- */
-static struct vm_map kmem_map_store;
-vm_map_t kmem_map = &kmem_map_store;
-
-/*
* Time of the last memory reclaim, in clock ticks.
*/
static unsigned long kmem_gc_last_tick;
@@ -1239,8 +1228,6 @@ void slab_init(void)
size_t i, size;
#endif /* SLAB_USE_CPU_POOLS */
- kmem_submap(kmem_map, kernel_map, &min, &max, KMEM_MAP_SIZE, FALSE);
-
#if SLAB_USE_CPU_POOLS
for (i = 0; i < ARRAY_SIZE(kmem_cpu_pool_types); i++) {
cpu_pool_type = &kmem_cpu_pool_types[i];