summaryrefslogtreecommitdiff
path: root/device/ds_routines.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2014-12-10 21:52:40 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-09-14 14:45:06 +0200
commit93833bb0fe0d1e87112a944d0ae0288ba695fa51 (patch)
tree77881ee1b3c1f01fc1b51d566ca30655e7d8d378 /device/ds_routines.c
parentee90a004a1a20a9c12dd45b896bfe8ffff2746a0 (diff)
kern/slab: directmap update
The main impact of the direct physical mapping on the kmem module is the slab size computation. The page allocator requires the allocation size to be a power-of-two above the page size since it uses the buddy memory allocation algorithm. Custom slab allocation functions are no longer needed since the only user was the kentry area, which has been removed recently. The KMEM_CACHE_NOCPUPOOL flag is also no longer needed since CPU pools, which are allocated from a kmem cache, can now always be allocated out of the direct physical mapping.
Diffstat (limited to 'device/ds_routines.c')
-rw-r--r--device/ds_routines.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/device/ds_routines.c b/device/ds_routines.c
index 33cfd89..e3502f7 100644
--- a/device/ds_routines.c
+++ b/device/ds_routines.c
@@ -1553,8 +1553,10 @@ void mach_device_init(void)
*/
device_io_map->wait_for_space = TRUE;
- kmem_cache_init(&io_inband_cache, "io_buf_ptr_inband",
- sizeof(io_buf_ptr_inband_t), 0, NULL, NULL, NULL, 0);
+ kmem_cache_init (&io_inband_cache,
+ "io_buf_ptr_inband",
+ sizeof(io_buf_ptr_inband_t), 0,
+ NULL, 0);
mach_device_trap_init();
}
@@ -1597,8 +1599,10 @@ struct kmem_cache io_trap_cache;
static void
mach_device_trap_init(void)
{
- kmem_cache_init(&io_trap_cache, "io_req", IOTRAP_REQSIZE, 0,
- NULL, NULL, NULL, 0);
+ kmem_cache_init (&io_trap_cache,
+ "io_req",
+ IOTRAP_REQSIZE, 0,
+ NULL, 0);
}
/*