diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2009-12-21 18:58:09 -0500 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-01-15 18:44:06 -0500 |
commit | ddd7722ffd1b091548f4c6f2bcb102696fd7846e (patch) | |
tree | a6ecf998a3be5d2fba1cfb04eb911bb5a42842d9 /litmus | |
parent | 1369a74afc1b85861ed27f9cf5d9c7ef5fa8df8c (diff) |
Re-enable "optimization" check for all task in cfs rq
- remove "likely" condition from branch
- add litmus.nr_running counter
Diffstat (limited to 'litmus')
-rw-r--r-- | litmus/sched_litmus.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/litmus/sched_litmus.c b/litmus/sched_litmus.c index 557563785162..9da589e4e41c 100644 --- a/litmus/sched_litmus.c +++ b/litmus/sched_litmus.c | |||
@@ -139,6 +139,8 @@ static void enqueue_task_litmus(struct rq *rq, struct task_struct *p, | |||
139 | sched_trace_task_resume(p); | 139 | sched_trace_task_resume(p); |
140 | tsk_rt(p)->present = 1; | 140 | tsk_rt(p)->present = 1; |
141 | litmus->task_wake_up(p); | 141 | litmus->task_wake_up(p); |
142 | |||
143 | rq->litmus.nr_running++; | ||
142 | } else | 144 | } else |
143 | TRACE_TASK(p, "ignoring an enqueue, not a wake up.\n"); | 145 | TRACE_TASK(p, "ignoring an enqueue, not a wake up.\n"); |
144 | } | 146 | } |
@@ -149,6 +151,8 @@ static void dequeue_task_litmus(struct rq *rq, struct task_struct *p, int sleep) | |||
149 | litmus->task_block(p); | 151 | litmus->task_block(p); |
150 | tsk_rt(p)->present = 0; | 152 | tsk_rt(p)->present = 0; |
151 | sched_trace_task_block(p); | 153 | sched_trace_task_block(p); |
154 | |||
155 | rq->litmus.nr_running--; | ||
152 | } else | 156 | } else |
153 | TRACE_TASK(p, "ignoring a dequeue, not going to sleep.\n"); | 157 | TRACE_TASK(p, "ignoring a dequeue, not going to sleep.\n"); |
154 | } | 158 | } |