aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/rt_domain.c
diff options
context:
space:
mode:
authorChristopher Kenna <cjk@cs.unc.edu>2012-10-04 15:44:14 -0400
committerChristopher Kenna <cjk@cs.unc.edu>2012-10-04 15:45:12 -0400
commitb1f5890e0aa8f0eb4ad9772ca50c1320a8af0a9c (patch)
tree58bee5022e0a5dbe44679429743e845d713e3394 /litmus/rt_domain.c
parent78ab09825ba4e7204f6f05f3f0f56ae9a11eafdd (diff)
Add ifdef's for CONFIG_PLUGIN_MC and CONFIG_MERGE_TIMERS.
Diffstat (limited to 'litmus/rt_domain.c')
-rw-r--r--litmus/rt_domain.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/litmus/rt_domain.c b/litmus/rt_domain.c
index 98a30b88baab..b70c94695a58 100644
--- a/litmus/rt_domain.c
+++ b/litmus/rt_domain.c
@@ -12,13 +12,16 @@
12#include <linux/slab.h> 12#include <linux/slab.h>
13 13
14#include <litmus/litmus.h> 14#include <litmus/litmus.h>
15#include <litmus/event_group.h>
16#include <litmus/sched_plugin.h> 15#include <litmus/sched_plugin.h>
17#include <litmus/sched_trace.h> 16#include <litmus/sched_trace.h>
18#include <litmus/rt_domain.h> 17#include <litmus/rt_domain.h>
19#include <litmus/trace.h> 18#include <litmus/trace.h>
20#include <litmus/bheap.h> 19#include <litmus/bheap.h>
21 20
21#ifdef CONFIG_MERGE_TIMERS
22#include <litmus/event_group.h>
23#endif
24
22/* Uncomment when debugging timer races... */ 25/* Uncomment when debugging timer races... */
23#if 1 26#if 1
24#define VTRACE_TASK TRACE_TASK 27#define VTRACE_TASK TRACE_TASK
@@ -53,11 +56,13 @@ static void do_release(struct release_heap *rh)
53{ 56{
54 unsigned long flags; 57 unsigned long flags;
55 58
59#ifdef CONFIG_PLUGIN_MC
56 if (CRIT_LEVEL_B == rh->dom->level) { 60 if (CRIT_LEVEL_B == rh->dom->level) {
57 TS_LVLB_RELEASE_START; 61 TS_LVLB_RELEASE_START;
58 } else { 62 } else {
59 TS_LVLC_RELEASE_START; 63 TS_LVLC_RELEASE_START;
60 } 64 }
65#endif
61 66
62 TS_RELEASE_LATENCY(rh->release_time); 67 TS_RELEASE_LATENCY(rh->release_time);
63 68
@@ -75,11 +80,13 @@ static void do_release(struct release_heap *rh)
75 /* call release callback */ 80 /* call release callback */
76 rh->dom->release_jobs(rh->dom, &rh->heap); 81 rh->dom->release_jobs(rh->dom, &rh->heap);
77 82
83#ifdef CONFIG_PLUGIN_MC
78 if (CRIT_LEVEL_B == rh->dom->level) { 84 if (CRIT_LEVEL_B == rh->dom->level) {
79 TS_LVLB_RELEASE_END; 85 TS_LVLB_RELEASE_END;
80 } else { 86 } else {
81 TS_LVLC_RELEASE_END; 87 TS_LVLC_RELEASE_END;
82 } 88 }
89#endif
83} 90}
84 91
85#ifdef CONFIG_MERGE_TIMERS 92#ifdef CONFIG_MERGE_TIMERS