Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69105
b: refs/heads/master
c: 0702e3e
h: refs/heads/master
i:
  69103: 01e4181
v: v3
  • Loading branch information
Ingo Molnar committed Oct 15, 2007
1 parent d70e172 commit f4ee14e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 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: 4cf86d77f5942336e7cd9de874b38b3c83b54d5e
refs/heads/master: 0702e3ebc1e42576a04d29f8adacf13be825b800
15 changes: 5 additions & 10 deletions trunk/kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ static inline struct task_struct *task_of(struct sched_entity *se)
* Scheduling class tree data structure manipulation methods:
*/

static inline u64
max_vruntime(u64 min_vruntime, u64 vruntime)
static inline u64 max_vruntime(u64 min_vruntime, u64 vruntime)
{
s64 delta = (s64)(vruntime - min_vruntime);
if (delta > 0)
Expand All @@ -122,8 +121,7 @@ max_vruntime(u64 min_vruntime, u64 vruntime)
return min_vruntime;
}

static inline u64
min_vruntime(u64 min_vruntime, u64 vruntime)
static inline u64 min_vruntime(u64 min_vruntime, u64 vruntime)
{
s64 delta = (s64)(vruntime - min_vruntime);
if (delta < 0)
Expand All @@ -132,17 +130,15 @@ min_vruntime(u64 min_vruntime, u64 vruntime)
return min_vruntime;
}

static inline s64
entity_key(struct cfs_rq *cfs_rq, struct sched_entity *se)
static inline s64 entity_key(struct cfs_rq *cfs_rq, struct sched_entity *se)
{
return se->vruntime - cfs_rq->min_vruntime;
}

/*
* Enqueue an entity into the rb-tree:
*/
static void
__enqueue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)
static void __enqueue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)
{
struct rb_node **link = &cfs_rq->tasks_timeline.rb_node;
struct rb_node *parent = NULL;
Expand Down Expand Up @@ -179,8 +175,7 @@ __enqueue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)
rb_insert_color(&se->run_node, &cfs_rq->tasks_timeline);
}

static void
__dequeue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)
static void __dequeue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)
{
if (cfs_rq->rb_leftmost == &se->run_node)
cfs_rq->rb_leftmost = rb_next(&se->run_node);
Expand Down

0 comments on commit f4ee14e

Please sign in to comment.