diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-09-22 17:18:07 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-09-22 17:18:07 -0400 |
commit | 44c034799bb7a4e8090b5460e36c3993d1924006 (patch) | |
tree | 4a1299358bf7effd2745c0e14bc49e52c67ac197 /litmus/sched_edf_fm.c | |
parent | f49ec60b4d6394cf199837bbe4c10258e5a877c7 (diff) | |
parent | 870eaa144c59ee2665b70dcbb9d8649e99e3c0c4 (diff) |
Merge branch 'wip-edf-wm' into wip-semi-part
This version of litmus2010 contains the implementation of three
semi-partitioned scheduling algorithms: EDF-fm, EDF-WM, and NPS-F.
Conflicts:
include/litmus/rt_param.h
litmus/Makefile
Diffstat (limited to 'litmus/sched_edf_fm.c')
-rw-r--r-- | litmus/sched_edf_fm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/litmus/sched_edf_fm.c b/litmus/sched_edf_fm.c index e14f8588c7a4..38b5a3f97101 100644 --- a/litmus/sched_edf_fm.c +++ b/litmus/sched_edf_fm.c | |||
@@ -60,8 +60,8 @@ DEFINE_PER_CPU(edffm_domain_t, edffm_domains); | |||
60 | /* Get job number for current cpu */ | 60 | /* Get job number for current cpu */ |
61 | #define cur_cpu_job_no(t) \ | 61 | #define cur_cpu_job_no(t) \ |
62 | ((tsk_rt(t)->task_params.cpu == edffm_params(t).cpus[0]) ? \ | 62 | ((tsk_rt(t)->task_params.cpu == edffm_params(t).cpus[0]) ? \ |
63 | tsk_rt(t)->semi_part.fm.cpu_job_no[0] : \ | 63 | tsk_rt(t)->semi_part.cpu_job_no[0] : \ |
64 | tsk_rt(t)->semi_part.fm.cpu_job_no[1]) | 64 | tsk_rt(t)->semi_part.cpu_job_no[1]) |
65 | /* What is the current cpu position in the array? */ | 65 | /* What is the current cpu position in the array? */ |
66 | #define edffm_cpu_pos(cpu,t) \ | 66 | #define edffm_cpu_pos(cpu,t) \ |
67 | ((cpu == edffm_params(t).cpus[0]) ? \ | 67 | ((cpu == edffm_params(t).cpus[0]) ? \ |
@@ -259,7 +259,7 @@ static void update_job_counter(struct task_struct *t) | |||
259 | 259 | ||
260 | /* Which CPU counter should be incremented? */ | 260 | /* Which CPU counter should be incremented? */ |
261 | cpu_pos = edffm_cpu_pos(t->rt_param.task_params.cpu, t); | 261 | cpu_pos = edffm_cpu_pos(t->rt_param.task_params.cpu, t); |
262 | t->rt_param.semi_part.fm.cpu_job_no[cpu_pos]++; | 262 | t->rt_param.semi_part.cpu_job_no[cpu_pos]++; |
263 | 263 | ||
264 | TRACE_TASK(t, "job_no = %d, cpu_job_no(pos %d) = %d, cpu %d\n", | 264 | TRACE_TASK(t, "job_no = %d, cpu_job_no(pos %d) = %d, cpu %d\n", |
265 | t->rt_param.job_params.job_no, cpu_pos, cur_cpu_job_no(t), | 265 | t->rt_param.job_params.job_no, cpu_pos, cur_cpu_job_no(t), |