Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350125
b: refs/heads/master
c: 1158ddb
h: refs/heads/master
i:
  350123: c484754
v: v3
  • Loading branch information
Kirill Tkhai authored and Ingo Molnar committed Jan 24, 2013
1 parent 51e2f6b commit eff662a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: a59f4e079d19464eebb9b06513a1d4f55fdae5ba
refs/heads/master: 1158ddb55416855fd17abe3214298f736f00426a
7 changes: 5 additions & 2 deletions trunk/kernel/sched/rt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1889,8 +1889,11 @@ static void switched_from_rt(struct rq *rq, struct task_struct *p)
* we may need to handle the pulling of RT tasks
* now.
*/
if (p->on_rq && !rq->rt.rt_nr_running)
pull_rt_task(rq);
if (!p->on_rq || rq->rt.rt_nr_running)
return;

if (pull_rt_task(rq))
resched_task(rq->curr);
}

void init_sched_rt_class(void)
Expand Down

0 comments on commit eff662a

Please sign in to comment.