Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110721
b: refs/heads/master
c: 6f0d5c3
h: refs/heads/master
i:
  110719: aee1d86
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Aug 19, 2008
1 parent 766b6be commit 2351829
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: af4491e51632d01fbc2b856ffa9ebcd4b38db68c
refs/heads/master: 6f0d5c390e4206dcb3804a5072a048fdb7d2b428
11 changes: 5 additions & 6 deletions trunk/kernel/sched_rt.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,6 @@ static int sched_rt_runtime_exceeded(struct rt_rq *rt_rq)
{
u64 runtime = sched_rt_runtime(rt_rq);

if (runtime == RUNTIME_INF)
return 0;

if (rt_rq->rt_throttled)
return rt_rq_throttled(rt_rq);

Expand Down Expand Up @@ -491,9 +488,11 @@ static void update_curr_rt(struct rq *rq)
rt_rq = rt_rq_of_se(rt_se);

spin_lock(&rt_rq->rt_runtime_lock);
rt_rq->rt_time += delta_exec;
if (sched_rt_runtime_exceeded(rt_rq))
resched_task(curr);
if (sched_rt_runtime(rt_rq) != RUNTIME_INF) {
rt_rq->rt_time += delta_exec;
if (sched_rt_runtime_exceeded(rt_rq))
resched_task(curr);
}
spin_unlock(&rt_rq->rt_runtime_lock);
}
}
Expand Down

0 comments on commit 2351829

Please sign in to comment.