aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuruprasad Aphale <gurua@cs.unc.edu>2010-08-10 05:46:42 -0400
committerGuruprasad Aphale <gurua@cs.unc.edu>2010-08-10 05:46:42 -0400
commitdcba0138a3fe593f9377cce45de473fca9f94084 (patch)
tree59822e31287a72ac10a2a4b80f9fa488a799ec0d
parent40d857e3427fb32b73bd8d4177e9f681c4c6c698 (diff)
Added cpu accounting for slices of a job
The last commit didn't include proper accounting of cpu time for slices of a job. This commit has modified 'update_time_litmus' in litmus/sched_litmus.c to track cpu time given to the current slice of a job on a particular cpu.
-rw-r--r--litmus/sched_litmus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/litmus/sched_litmus.c b/litmus/sched_litmus.c
index c65388969789..72858b84b7e7 100644
--- a/litmus/sched_litmus.c
+++ b/litmus/sched_litmus.c
@@ -10,6 +10,8 @@ static void update_time_litmus(struct rq *rq, struct task_struct *p)
10 delta = 0; 10 delta = 0;
11 /* per job counter */ 11 /* per job counter */
12 p->rt_param.job_params.exec_time += delta; 12 p->rt_param.job_params.exec_time += delta;
13
14 p->rt_param.job_params.exec_time_curr_cpu += delta;
13 /* task counter */ 15 /* task counter */
14 p->se.sum_exec_runtime += delta; 16 p->se.sum_exec_runtime += delta;
15 /* sched_clock() */ 17 /* sched_clock() */