Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76197
b: refs/heads/master
c: 326587b
h: refs/heads/master
i:
  76195: 8fffde8
v: v3
  • Loading branch information
Dmitry Adamushko authored and Ingo Molnar committed Jan 25, 2008
1 parent 6313ce3 commit 72c2ee8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 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: e118adef232e637a8f091c1ded2fbf44fcf3ecc8
refs/heads/master: 326587b840785c60f5dc18557235a23bafefd620
9 changes: 2 additions & 7 deletions trunk/kernel/sched_rt.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,15 +476,12 @@ static struct sched_rt_entity *pick_next_rt_entity(struct rq *rq,
struct list_head *queue;
int idx;

if (sched_rt_ratio_exceeded(rt_rq))
goto out;

idx = sched_find_first_bit(array->bitmap);
BUG_ON(idx >= MAX_RT_PRIO);

queue = array->queue + idx;
next = list_entry(queue->next, struct sched_rt_entity, run_list);
out:

return next;
}

Expand All @@ -494,7 +491,6 @@ static struct task_struct *pick_next_task_rt(struct rq *rq)
struct task_struct *p;
struct rt_rq *rt_rq;

retry:
rt_rq = &rq->rt;

if (unlikely(!rt_rq->rt_nr_running))
Expand All @@ -505,8 +501,7 @@ static struct task_struct *pick_next_task_rt(struct rq *rq)

do {
rt_se = pick_next_rt_entity(rq, rt_rq);
if (unlikely(!rt_se))
goto retry;
BUG_ON(!rt_se);
rt_rq = group_rt_rq(rt_se);
} while (rt_rq);

Expand Down

0 comments on commit 72c2ee8

Please sign in to comment.