aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/budget.c
diff options
context:
space:
mode:
Diffstat (limited to 'litmus/budget.c')
-rw-r--r--litmus/budget.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/litmus/budget.c b/litmus/budget.c
index f7505b0f86e5..b1c0a4b84c02 100644
--- a/litmus/budget.c
+++ b/litmus/budget.c
@@ -109,28 +109,4 @@ static int __init init_budget_enforcement(void)
109 return 0; 109 return 0;
110} 110}
111 111
112void task_release(struct task_struct *t)
113{
114 /* Also wrong */
115 t->rt_param.job_params.real_release = t->rt_param.job_params.real_deadline;
116 t->rt_param.job_params.real_deadline += get_rt_period(t);
117 t->rt_param.job_params.job_no++;
118 sched_trace_task_release(t);
119}
120
121void server_release(struct task_struct *t)
122{
123 t->rt_param.job_params.exec_time = 0;
124 t->rt_param.job_params.release = t->rt_param.job_params.deadline;
125 t->rt_param.job_params.deadline += get_rt_period(t);
126 t->rt_param.job_params.fake_job_no++;
127
128 /* don't confuse linux */
129 t->rt.time_slice = 1;
130
131 sched_trace_server_release(-t->pid, get_server_job(t),
132 t->rt_param.job_params.release,
133 t->rt_param.job_params.deadline);
134}
135
136module_init(init_budget_enforcement); 112module_init(init_budget_enforcement);