aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_part_edf.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched_part_edf.c')
-rw-r--r--kernel/sched_part_edf.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/kernel/sched_part_edf.c b/kernel/sched_part_edf.c
index 8166c8f4c6..a792ac5d03 100644
--- a/kernel/sched_part_edf.c
+++ b/kernel/sched_part_edf.c
@@ -241,10 +241,10 @@ static void part_edf_wake_up_task(struct task_struct *task)
241 add_ready(edf, task); 241 add_ready(edf, task);
242 242
243 } else if (task->time_slice) { 243 } else if (task->time_slice) {
244 /* came back in time before deadline 244 /* Came back in time before deadline. This may cause
245 * TODO: clip budget to fit into period, otherwise it could 245 * deadline overruns, but since we don't handle suspensions
246 * cause a deadline overrun in the next period, i.e. 246 * in the analytical model, we don't care since we can't
247 * over allocation in the next period. 247 * guarantee anything at all if tasks block.
248 */ 248 */
249 set_rt_flags(task, RT_F_RUNNING); 249 set_rt_flags(task, RT_F_RUNNING);
250 add_ready(edf, task); 250 add_ready(edf, task);
@@ -262,8 +262,6 @@ static void part_edf_task_blocks(struct task_struct *t)
262 * it is running, and when it is not running it is not in any 262 * it is running, and when it is not running it is not in any
263 * queue anyway. 263 * queue anyway.
264 * 264 *
265 * TODO: Check whether the assumption is correct for SIGKILL and
266 * SIGSTOP.
267 */ 265 */
268 TRACE("task %d blocks with budget=%d\n", t->pid, t->time_slice); 266 TRACE("task %d blocks with budget=%d\n", t->pid, t->time_slice);
269 BUG_ON(in_list(&t->rt_list)); 267 BUG_ON(in_list(&t->rt_list));
@@ -313,7 +311,6 @@ static sched_plugin_t s_plugin __cacheline_aligned_in_smp = {
313 .prepare_task = part_edf_prepare_task,\ 311 .prepare_task = part_edf_prepare_task,\
314 .sleep_next_period = edf_sleep_next_period,\ 312 .sleep_next_period = edf_sleep_next_period,\
315 .tear_down = part_edf_tear_down,\ 313 .tear_down = part_edf_tear_down,\
316 .shutdown_hook = NULL,\
317 .schedule = part_edf_schedule,\ 314 .schedule = part_edf_schedule,\
318 .finish_switch = part_edf_finish_switch,\ 315 .finish_switch = part_edf_finish_switch,\
319 .mode_change = part_edf_mode_change,\ 316 .mode_change = part_edf_mode_change,\