summaryrefslogtreecommitdiff
path: root/kern/processor.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-08-26 16:29:35 +0200
commit7960290a67c945b6133b6e680a9bd2c241adfae4 (patch)
tree29d5a94d51fa0c0b4ad043cdedf609489d8d2db4 /kern/processor.c
parente8988e0845f2fe888df9bc94b2640a3fd82b6678 (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 'kern/processor.c')
-rw-r--r--kern/processor.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/kern/processor.c b/kern/processor.c
index bc70dde..f2f9a2d 100644
--- a/kern/processor.c
+++ b/kern/processor.c
@@ -108,8 +108,10 @@ void pset_sys_init(void)
/*
* Allocate the cache for processor sets.
*/
- kmem_cache_init(&pset_cache, "processor_set",
- sizeof(struct processor_set), 0, NULL, NULL, NULL, 0);
+ kmem_cache_init (&pset_cache,
+ "processor_set",
+ sizeof(struct processor_set), 0,
+ NULL, 0);
/*
* Give each processor a control port.