diff options
author | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:03 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:03 -0400 |
commit | 62160e3f4a06d948ec89665d29f1173e551deedc (patch) | |
tree | b86bfddf913ea3b22837fb3dcbbdf8c2fb567ed1 /kernel/sched.c | |
parent | 53df556e06d85245cf6aacedaba8e4da684859c3 (diff) |
sched: track cfs_rq->curr on !group-scheduling too
Noticed by Roman Zippel: use cfs_rq->curr in the !group-scheduling
case too. Small micro-optimization and cleanup effect:
text data bss dec hex filename
36269 3482 24 39775 9b5f sched.o.before
36177 3486 24 39687 9b07 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>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index f6a81061fd50..3209e2cc2c2e 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -189,11 +189,11 @@ struct cfs_rq { | |||
189 | struct rb_root tasks_timeline; | 189 | struct rb_root tasks_timeline; |
190 | struct rb_node *rb_leftmost; | 190 | struct rb_node *rb_leftmost; |
191 | struct rb_node *rb_load_balance_curr; | 191 | struct rb_node *rb_load_balance_curr; |
192 | #ifdef CONFIG_FAIR_GROUP_SCHED | ||
193 | /* 'curr' points to currently running entity on this cfs_rq. | 192 | /* 'curr' points to currently running entity on this cfs_rq. |
194 | * It is set to NULL otherwise (i.e when none are currently running). | 193 | * It is set to NULL otherwise (i.e when none are currently running). |
195 | */ | 194 | */ |
196 | struct sched_entity *curr; | 195 | struct sched_entity *curr; |
196 | #ifdef CONFIG_FAIR_GROUP_SCHED | ||
197 | struct rq *rq; /* cpu runqueue to which this cfs_rq is attached */ | 197 | struct rq *rq; /* cpu runqueue to which this cfs_rq is attached */ |
198 | 198 | ||
199 | /* leaf cfs_rqs are those that hold tasks (lowest schedulable entity in | 199 | /* leaf cfs_rqs are those that hold tasks (lowest schedulable entity in |