Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69077
b: refs/heads/master
c: 57cb499
h: refs/heads/master
i:
  69075: 0423706
v: v3
  • Loading branch information
Ingo Molnar committed Oct 15, 2007
1 parent e9b6d4e commit e2fece0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 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: 2ddbf952508fb9911036c484a87f6351106b917c
refs/heads/master: 57cb499df26d80ec11cd49e56d20835334ac4ab9
14 changes: 2 additions & 12 deletions trunk/kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,6 @@ max_vruntime(u64 min_vruntime, u64 vruntime)
return min_vruntime;
}

static inline void
set_leftmost(struct cfs_rq *cfs_rq, struct rb_node *leftmost)
{
struct sched_entity *se;

cfs_rq->rb_leftmost = leftmost;
if (leftmost)
se = rb_entry(leftmost, struct sched_entity, run_node);
}

static inline s64
entity_key(struct cfs_rq *cfs_rq, struct sched_entity *se)
{
Expand Down Expand Up @@ -175,7 +165,7 @@ __enqueue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)
* used):
*/
if (leftmost)
set_leftmost(cfs_rq, &se->run_node);
cfs_rq->rb_leftmost = &se->run_node;

rb_link_node(&se->run_node, parent, link);
rb_insert_color(&se->run_node, &cfs_rq->tasks_timeline);
Expand All @@ -185,7 +175,7 @@ static void
__dequeue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)
{
if (cfs_rq->rb_leftmost == &se->run_node)
set_leftmost(cfs_rq, rb_next(&se->run_node));
cfs_rq->rb_leftmost = rb_next(&se->run_node);

rb_erase(&se->run_node, &cfs_rq->tasks_timeline);
}
Expand Down

0 comments on commit e2fece0

Please sign in to comment.