diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-10-07 22:25:47 -0400 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-10-07 22:25:47 -0400 |
commit | 91dca2e13c86f15343d13b83c328fdab3cfa110a (patch) | |
tree | 4ee87d0f2481d025045a8ad00b29183b324db8e5 | |
parent | 4f196c1854e8e51d33fc0c68ec7249f54886ae83 (diff) |
Fixed scheduling overhead macros for mixed-criticality.
-rw-r--r-- | include/litmus/trace.h | 6 | ||||
-rw-r--r-- | litmus/sched_mc.c | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/include/litmus/trace.h b/include/litmus/trace.h index d868144f6928..61332b5f7c50 100644 --- a/include/litmus/trace.h +++ b/include/litmus/trace.h | |||
@@ -10,7 +10,7 @@ | |||
10 | /*********************** TIMESTAMPS ************************/ | 10 | /*********************** TIMESTAMPS ************************/ |
11 | 11 | ||
12 | enum task_type_marker { | 12 | enum task_type_marker { |
13 | TSK_BE, | 13 | TSK_BE = 0, |
14 | TSK_RT, | 14 | TSK_RT, |
15 | TSK_UNKNOWN, | 15 | TSK_UNKNOWN, |
16 | TSK_LVLA, | 16 | TSK_LVLA, |
@@ -23,9 +23,9 @@ struct timestamp { | |||
23 | uint32_t seq_no; | 23 | uint32_t seq_no; |
24 | uint8_t cpu; | 24 | uint8_t cpu; |
25 | uint8_t event; | 25 | uint8_t event; |
26 | uint8_t task_type:2; | 26 | uint8_t task_type:3; |
27 | uint8_t irq_flag:1; | 27 | uint8_t irq_flag:1; |
28 | uint8_t irq_count:5; | 28 | uint8_t irq_count:4; |
29 | }; | 29 | }; |
30 | 30 | ||
31 | /* tracing callbacks */ | 31 | /* tracing callbacks */ |
diff --git a/litmus/sched_mc.c b/litmus/sched_mc.c index 8028ce85e2dd..03a214f70233 100644 --- a/litmus/sched_mc.c +++ b/litmus/sched_mc.c | |||
@@ -673,6 +673,7 @@ static void job_completion(struct task_struct *task, int forced) | |||
673 | if (!forced) { | 673 | if (!forced) { |
674 | /* Userspace signaled job completion */ | 674 | /* Userspace signaled job completion */ |
675 | sched_trace_task_completion(current, 0); | 675 | sched_trace_task_completion(current, 0); |
676 | mb(); | ||
676 | setup_user_release(current, get_user_deadline(current)); | 677 | setup_user_release(current, get_user_deadline(current)); |
677 | 678 | ||
678 | } | 679 | } |