diff options
Diffstat (limited to 'litmus/litmus.c')
-rw-r--r-- | litmus/litmus.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/litmus/litmus.c b/litmus/litmus.c index 6a75da08f0fb..c4f899510900 100644 --- a/litmus/litmus.c +++ b/litmus/litmus.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <litmus/rt_domain.h> | 16 | #include <litmus/rt_domain.h> |
17 | #include <litmus/litmus_proc.h> | 17 | #include <litmus/litmus_proc.h> |
18 | #include <litmus/sched_trace.h> | 18 | #include <litmus/sched_trace.h> |
19 | #include <litmus/servers.h> | ||
19 | 20 | ||
20 | /* Number of RT tasks that exist in the system */ | 21 | /* Number of RT tasks that exist in the system */ |
21 | atomic_t rt_task_count = ATOMIC_INIT(0); | 22 | atomic_t rt_task_count = ATOMIC_INIT(0); |
@@ -33,7 +34,6 @@ atomic_t release_master_cpu = ATOMIC_INIT(NO_CPU); | |||
33 | 34 | ||
34 | static struct kmem_cache * bheap_node_cache; | 35 | static struct kmem_cache * bheap_node_cache; |
35 | extern struct kmem_cache * release_heap_cache; | 36 | extern struct kmem_cache * release_heap_cache; |
36 | extern struct kmem_cache * server_release_cache; | ||
37 | 37 | ||
38 | struct bheap_node* bheap_node_alloc(int gfp_flags) | 38 | struct bheap_node* bheap_node_alloc(int gfp_flags) |
39 | { | 39 | { |
@@ -327,8 +327,6 @@ long litmus_admit_task(struct task_struct* tsk) | |||
327 | } | 327 | } |
328 | 328 | ||
329 | INIT_LIST_HEAD(&tsk_rt(tsk)->list); | 329 | INIT_LIST_HEAD(&tsk_rt(tsk)->list); |
330 | INIT_LIST_HEAD(&tsk_rt(tsk)->slack_list); | ||
331 | tsk_rt(tsk)->slack_server = NULL; | ||
332 | 330 | ||
333 | /* avoid scheduler plugin changing underneath us */ | 331 | /* avoid scheduler plugin changing underneath us */ |
334 | raw_spin_lock_irqsave(&task_transition_lock, flags); | 332 | raw_spin_lock_irqsave(&task_transition_lock, flags); |
@@ -336,7 +334,6 @@ long litmus_admit_task(struct task_struct* tsk) | |||
336 | /* allocate heap node for this task */ | 334 | /* allocate heap node for this task */ |
337 | tsk_rt(tsk)->heap_node = bheap_node_alloc(GFP_ATOMIC); | 335 | tsk_rt(tsk)->heap_node = bheap_node_alloc(GFP_ATOMIC); |
338 | tsk_rt(tsk)->rel_heap = release_heap_alloc(GFP_ATOMIC); | 336 | tsk_rt(tsk)->rel_heap = release_heap_alloc(GFP_ATOMIC); |
339 | tsk_rt(tsk)->slack_candidate = 0; | ||
340 | 337 | ||
341 | if (!tsk_rt(tsk)->heap_node || !tsk_rt(tsk)->rel_heap) { | 338 | if (!tsk_rt(tsk)->heap_node || !tsk_rt(tsk)->rel_heap) { |
342 | printk(KERN_WARNING "litmus: no more heap node memory!?\n"); | 339 | printk(KERN_WARNING "litmus: no more heap node memory!?\n"); |
@@ -523,9 +520,8 @@ static int __init _init_litmus(void) | |||
523 | 520 | ||
524 | register_sched_plugin(&linux_sched_plugin); | 521 | register_sched_plugin(&linux_sched_plugin); |
525 | 522 | ||
526 | bheap_node_cache = KMEM_CACHE(bheap_node, SLAB_PANIC); | 523 | bheap_node_cache = KMEM_CACHE(bheap_node, SLAB_PANIC); |
527 | release_heap_cache = KMEM_CACHE(release_heap, SLAB_PANIC); | 524 | release_heap_cache = KMEM_CACHE(release_heap, SLAB_PANIC); |
528 | server_release_cache = KMEM_CACHE(release_heap, SLAB_PANIC); | ||
529 | 525 | ||
530 | #ifdef CONFIG_MAGIC_SYSRQ | 526 | #ifdef CONFIG_MAGIC_SYSRQ |
531 | /* offer some debugging help */ | 527 | /* offer some debugging help */ |
@@ -545,7 +541,6 @@ static void _exit_litmus(void) | |||
545 | exit_litmus_proc(); | 541 | exit_litmus_proc(); |
546 | kmem_cache_destroy(bheap_node_cache); | 542 | kmem_cache_destroy(bheap_node_cache); |
547 | kmem_cache_destroy(release_heap_cache); | 543 | kmem_cache_destroy(release_heap_cache); |
548 | kmem_cache_destroy(server_release_cache); | ||
549 | } | 544 | } |
550 | 545 | ||
551 | module_init(_init_litmus); | 546 | module_init(_init_litmus); |