diff options
author | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:04 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:04 -0400 |
commit | 19ccd97a03a026c2341b35af3ed2078a83c4a22b (patch) | |
tree | 7d522fe6be9d261b630cbceee54717c6148a003d | |
parent | e59c80c5bbc0d3d6b0772edb347ce2dd303121b3 (diff) |
sched: uninline __enqueue_entity()/__dequeue_entity()
suggested by Roman Zippel: uninline __enqueue_entity() and
__dequeue_entity().
this reduces code size:
text data bss dec hex filename
25385 2386 16 27787 6c8b sched.o.before
25257 2386 16 27659 6c0b sched.o.after
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Mike Galbraith <efault@gmx.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | kernel/sched_fair.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 2488f6f3ffad..91a227b436ee 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -148,7 +148,7 @@ static inline struct task_struct *task_of(struct sched_entity *se) | |||
148 | /* | 148 | /* |
149 | * Enqueue an entity into the rb-tree: | 149 | * Enqueue an entity into the rb-tree: |
150 | */ | 150 | */ |
151 | static inline void | 151 | static void |
152 | __enqueue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se) | 152 | __enqueue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se) |
153 | { | 153 | { |
154 | struct rb_node **link = &cfs_rq->tasks_timeline.rb_node; | 154 | struct rb_node **link = &cfs_rq->tasks_timeline.rb_node; |
@@ -191,7 +191,7 @@ __enqueue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se) | |||
191 | schedstat_add(cfs_rq, wait_runtime, se->wait_runtime); | 191 | schedstat_add(cfs_rq, wait_runtime, se->wait_runtime); |
192 | } | 192 | } |
193 | 193 | ||
194 | static inline void | 194 | static void |
195 | __dequeue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se) | 195 | __dequeue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se) |
196 | { | 196 | { |
197 | if (cfs_rq->rb_leftmost == &se->run_node) | 197 | if (cfs_rq->rb_leftmost == &se->run_node) |