aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/jobs.c
diff options
context:
space:
mode:
Diffstat (limited to 'litmus/jobs.c')
-rw-r--r--litmus/jobs.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/litmus/jobs.c b/litmus/jobs.c
index 097d7dd94d12..9e6de1b08982 100644
--- a/litmus/jobs.c
+++ b/litmus/jobs.c
@@ -116,25 +116,6 @@ void release_at(struct task_struct *t, lt_t start)
116 */ 116 */
117long complete_job(void) 117long complete_job(void)
118{ 118{
119 lt_t amount;
120 lt_t now = litmus_clock();
121 lt_t exec_time = tsk_rt(current)->job_params.exec_time;
122
123 /* Task statistic summaries */
124 tsk_rt(current)->tot_exec_time += exec_time;
125 if (lt_before(tsk_rt(current)->max_exec_time, exec_time))
126 tsk_rt(current)->max_exec_time = exec_time;
127
128 if (is_tardy(current, now)) {
129 TRACE_TASK(current, "is tardy, now: %llu, deadline: %llu\n",
130 now, get_deadline(current));
131 amount = now - get_deadline(current);
132 if (lt_after(amount, tsk_rt(current)->max_tardy))
133 tsk_rt(current)->max_tardy = amount;
134 tsk_rt(current)->total_tardy += amount;
135 ++tsk_rt(current)->missed;
136 }
137
138 TRACE_TASK(current, "user complete\n"); 119 TRACE_TASK(current, "user complete\n");
139 120
140 /* Mark that we do not execute anymore */ 121 /* Mark that we do not execute anymore */