diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-09-16 07:44:33 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-09-16 10:44:32 -0400 |
commit | 3b6408942206f940dd538e980e9904e48f4b64f8 (patch) | |
tree | 7e0a0dc37d07e0308ef2294a5de1cd1ea42a388c /kernel/sched.c | |
parent | 7c423e98856df9b941223a7e7845b2502ad84b00 (diff) |
sched: Optimize cgroup vs wakeup a bit
We don't need to call update_shares() for each domain we iterate,
just got the largets one.
However, we should call it before wake_affine() as well, so that
that can use up-to-date values too.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index af04ede6dd2f..5049d959bb26 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -376,13 +376,6 @@ static inline void set_task_rq(struct task_struct *p, unsigned int cpu) | |||
376 | 376 | ||
377 | #else | 377 | #else |
378 | 378 | ||
379 | #ifdef CONFIG_SMP | ||
380 | static int root_task_group_empty(void) | ||
381 | { | ||
382 | return 1; | ||
383 | } | ||
384 | #endif | ||
385 | |||
386 | static inline void set_task_rq(struct task_struct *p, unsigned int cpu) { } | 379 | static inline void set_task_rq(struct task_struct *p, unsigned int cpu) { } |
387 | static inline struct task_group *task_group(struct task_struct *p) | 380 | static inline struct task_group *task_group(struct task_struct *p) |
388 | { | 381 | { |