Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182515
b: refs/heads/master
c: 74b7eb5
h: refs/heads/master
i:
  182513: b297773
  182511: ce7ff1d
v: v3
  • Loading branch information
Yong Zhang authored and Ingo Molnar committed Feb 4, 2010
1 parent c6938b3 commit 54c9bb6
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 4a461c85b643258e305eb5a3aced34009db2f818
refs/heads/master: 74b7eb5885415ed41d012f432398d1b697115b5f
10 changes: 8 additions & 2 deletions trunk/kernel/sched_rt.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,11 @@ static void dequeue_rt_entity(struct sched_rt_entity *rt_se);

static void sched_rt_rq_enqueue(struct rt_rq *rt_rq)
{
int this_cpu = smp_processor_id();
struct task_struct *curr = rq_of_rt_rq(rt_rq)->curr;
struct sched_rt_entity *rt_se = rt_rq->rt_se;
struct sched_rt_entity *rt_se;

rt_se = rt_rq->tg->rt_se[this_cpu];

if (rt_rq->rt_nr_running) {
if (rt_se && !on_rt_rq(rt_se))
Expand All @@ -212,7 +215,10 @@ static void sched_rt_rq_enqueue(struct rt_rq *rt_rq)

static void sched_rt_rq_dequeue(struct rt_rq *rt_rq)
{
struct sched_rt_entity *rt_se = rt_rq->rt_se;
int this_cpu = smp_processor_id();
struct sched_rt_entity *rt_se;

rt_se = rt_rq->tg->rt_se[this_cpu];

if (rt_se && on_rt_rq(rt_se))
dequeue_rt_entity(rt_se);
Expand Down

0 comments on commit 54c9bb6

Please sign in to comment.