aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/litmus.c
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2011-09-24 18:33:08 -0400
committerJonathan Herman <hermanjl@cs.unc.edu>2011-09-24 18:33:08 -0400
commitd1e50b511a6586da696ef5a61ed18818b8139b67 (patch)
treedf641092f7eb044cdbfe1a8cd5969c33a0f820a4 /litmus/litmus.c
parentc30d3e248cb6ece50cc9b06769ed794d600f0c20 (diff)
Checkpoint commit,initial timer merge design
Diffstat (limited to 'litmus/litmus.c')
-rw-r--r--litmus/litmus.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/litmus/litmus.c b/litmus/litmus.c
index 89fb4e9aff8c..0e7cc753d8f2 100644
--- a/litmus/litmus.c
+++ b/litmus/litmus.c
@@ -37,8 +37,9 @@ atomic_t __log_seq_no = ATOMIC_INIT(0);
37atomic_t release_master_cpu = ATOMIC_INIT(NO_CPU); 37atomic_t release_master_cpu = ATOMIC_INIT(NO_CPU);
38#endif 38#endif
39 39
40static struct kmem_cache * bheap_node_cache; 40static struct kmem_cache *bheap_node_cache;
41extern struct kmem_cache * release_heap_cache; 41extern struct kmem_cache *release_heap_cache;
42extern struct kmem_cache *event_list_cache;
42 43
43struct bheap_node* bheap_node_alloc(int gfp_flags) 44struct bheap_node* bheap_node_alloc(int gfp_flags)
44{ 45{
@@ -610,8 +611,9 @@ static int __init _init_litmus(void)
610 611
611 register_sched_plugin(&linux_sched_plugin); 612 register_sched_plugin(&linux_sched_plugin);
612 613
613 bheap_node_cache = KMEM_CACHE(bheap_node, SLAB_PANIC); 614 bheap_node_cache = KMEM_CACHE(bheap_node, SLAB_PANIC);
614 release_heap_cache = KMEM_CACHE(release_heap, SLAB_PANIC); 615 release_heap_cache = KMEM_CACHE(release_heap, SLAB_PANIC);
616 event_list_cache = KMEM_CACHE(event_list, SLAB_PANIC);
615 617
616#ifdef CONFIG_MAGIC_SYSRQ 618#ifdef CONFIG_MAGIC_SYSRQ
617 /* offer some debugging help */ 619 /* offer some debugging help */
@@ -631,6 +633,7 @@ static void _exit_litmus(void)
631 exit_litmus_proc(); 633 exit_litmus_proc();
632 kmem_cache_destroy(bheap_node_cache); 634 kmem_cache_destroy(bheap_node_cache);
633 kmem_cache_destroy(release_heap_cache); 635 kmem_cache_destroy(release_heap_cache);
636 kmem_cache_destroy(event_list_cache);
634} 637}
635 638
636module_init(_init_litmus); 639module_init(_init_litmus);