sched: Optimize cgroup vs wakeup a bit
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 16 Sep 2009 11:44:33 +0000 (13:44 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 16 Sep 2009 14:44:32 +0000 (16:44 +0200)
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>
kernel/sched.c
kernel/sched_fair.c
kernel/sched_features.h

index af04ede..5049d95 100644 (file)
@@ -376,13 +376,6 @@ static inline void set_task_rq(struct task_struct *p, unsigned int cpu)
 
 #else
 
-#ifdef CONFIG_SMP
-static int root_task_group_empty(void)
-{
-       return 1;
-}
-#endif
-
 static inline void set_task_rq(struct task_struct *p, unsigned int cpu) { }
 static inline struct task_group *task_group(struct task_struct *p)
 {
Simple merge
Simple merge