Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310472
b: refs/heads/master
c: 454c799
h: refs/heads/master
v: v3
  • Loading branch information
Colin Cross authored and Ingo Molnar committed May 30, 2012
1 parent e7d1e91 commit 112892b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 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: 29baa7478ba47d746e3625c91d3b2afbf46b4312
refs/heads/master: 454c79999f7eaedcdf4c15c449e43902980cbdf5
15 changes: 10 additions & 5 deletions trunk/kernel/sched/rt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1985,6 +1985,8 @@ static void watchdog(struct rq *rq, struct task_struct *p)

static void task_tick_rt(struct rq *rq, struct task_struct *p, int queued)
{
struct sched_rt_entity *rt_se = &p->rt;

update_curr_rt(rq);

watchdog(rq, p);
Expand All @@ -2002,12 +2004,15 @@ static void task_tick_rt(struct rq *rq, struct task_struct *p, int queued)
p->rt.time_slice = RR_TIMESLICE;

/*
* Requeue to the end of queue if we are not the only element
* on the queue:
* Requeue to the end of queue if we (and all of our ancestors) are the
* only element on the queue
*/
if (p->rt.run_list.prev != p->rt.run_list.next) {
requeue_task_rt(rq, p, 0);
set_tsk_need_resched(p);
for_each_sched_rt_entity(rt_se) {
if (rt_se->run_list.prev != rt_se->run_list.next) {
requeue_task_rt(rq, p, 0);
set_tsk_need_resched(p);
return;
}
}
}

Expand Down

0 comments on commit 112892b

Please sign in to comment.