aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorPaul Turner <pjt@google.com>2011-01-21 23:45:01 -0500
committerIngo Molnar <mingo@elte.hu>2011-01-26 06:33:19 -0500
commit6d5ab2932a21ea54406ab95c43ecff90a3eddfda (patch)
tree0d2ad00378aec0888426997f8f8dc5d7a3b8a602 /kernel/sched.c
parent05ca62c6ca17f39b88fa956d5ebc1fa6e93ad5e3 (diff)
sched: Simplify update_cfs_shares parameters
Re-visiting this: Since update_cfs_shares will now only ever re-weight an entity that is a relative parent of the current entity in enqueue_entity; we can safely issue the account_entity_enqueue relative to that cfs_rq and avoid the requirement for special handling of the enqueue case in update_cfs_shares. Signed-off-by: Paul Turner <pjt@google.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <20110122044851.915214637@google.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 18d38e4ec7ba..e0fa3ff7f194 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -8510,7 +8510,7 @@ int sched_group_set_shares(struct task_group *tg, unsigned long shares)
8510 /* Propagate contribution to hierarchy */ 8510 /* Propagate contribution to hierarchy */
8511 raw_spin_lock_irqsave(&rq->lock, flags); 8511 raw_spin_lock_irqsave(&rq->lock, flags);
8512 for_each_sched_entity(se) 8512 for_each_sched_entity(se)
8513 update_cfs_shares(group_cfs_rq(se), 0); 8513 update_cfs_shares(group_cfs_rq(se));
8514 raw_spin_unlock_irqrestore(&rq->lock, flags); 8514 raw_spin_unlock_irqrestore(&rq->lock, flags);
8515 } 8515 }
8516 8516