diff options
author | Mac Mollison <mollison@cs.unc.edu> | 2010-11-06 12:10:00 -0400 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2011-08-25 14:41:19 -0400 |
commit | a13fea492e3159212fce9dc442ae5f11ed08b67b (patch) | |
tree | 4e435249a6499cc69c9e5d0f08edd44b0c1c3080 /litmus/sched_mc.c | |
parent | 36d1237b4b97e705b93dad060da1eebf8c1d491b (diff) |
Minor fix
Diffstat (limited to 'litmus/sched_mc.c')
-rw-r--r-- | litmus/sched_mc.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/litmus/sched_mc.c b/litmus/sched_mc.c index d83f2c33dbbc..61386d6bfc27 100644 --- a/litmus/sched_mc.c +++ b/litmus/sched_mc.c | |||
@@ -368,6 +368,17 @@ static noinline void requeue(struct task_struct* task) | |||
368 | } | 368 | } |
369 | } | 369 | } |
370 | 370 | ||
371 | static void do_preemption_on_cpu(rt_domain_t *dom, cpu_entry_t *cpu) { | ||
372 | struct task_struct* task; | ||
373 | task = __take_ready(dom); | ||
374 | TRACE("do_preemption_on_cpu: attempting to link task %d to %d\n", | ||
375 | task->pid, cpu->cpu); | ||
376 | if (cpu->linked) | ||
377 | requeue(cpu->linked); | ||
378 | link_task_to_cpu(task, cpu); | ||
379 | preempt(cpu); | ||
380 | } | ||
381 | |||
371 | static void check_for_gedf_preemptions(rt_domain_t *dom){ | 382 | static void check_for_gedf_preemptions(rt_domain_t *dom){ |
372 | struct task_struct *task; | 383 | struct task_struct *task; |
373 | cpu_entry_t* last; | 384 | cpu_entry_t* last; |
@@ -384,17 +395,6 @@ static void check_for_pedf_preemption(rt_domain_t *dom, cpu_entry_t *cpu) { | |||
384 | } | 395 | } |
385 | } | 396 | } |
386 | 397 | ||
387 | static void do_preemption_on_cpu(rt_domain_t *dom, cpu_entry_t *cpu) { | ||
388 | struct task_struct* task; | ||
389 | task = __take_ready(dom); | ||
390 | TRACE("do_preemption_on_cpu: attempting to link task %d to %d\n", | ||
391 | task->pid, cpu->cpu); | ||
392 | if (cpu->linked) | ||
393 | requeue(cpu->linked); | ||
394 | link_task_to_cpu(task, cpu); | ||
395 | preempt(cpu); | ||
396 | } | ||
397 | |||
398 | /* mc_job_arrival: task is either resumed or released */ | 398 | /* mc_job_arrival: task is either resumed or released */ |
399 | static noinline void mc_job_arrival(struct task_struct* task) | 399 | static noinline void mc_job_arrival(struct task_struct* task) |
400 | { | 400 | { |