aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLin Ming <ming.m.lin@intel.com>2011-07-21 21:14:31 -0400
committerIngo Molnar <mingo@elte.hu>2011-07-22 06:47:22 -0400
commit0f3171438fc917b9f6b8b60dbb7a3fff9a0f68fd (patch)
tree9164575614f17bbce9a03128af460e997189a808 /kernel
parent2bd2d6f2dc952fc44fc52887de36e51896da96b9 (diff)
sched: Cleanup duplicate local variable in [enqueue|dequeue]_task_fair
No need to define a new "cfs_rq" variable in the "for" block. Just use the one at the top of the function. Signed-off-by: Lin Ming <ming.m.lin@intel.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1311297271.3938.1352.camel@minggr.sh.intel.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched_fair.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index a2ecbaa28b4c..bc8ee9993814 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -1317,7 +1317,7 @@ enqueue_task_fair(struct rq *rq, struct task_struct *p, int flags)
1317 } 1317 }
1318 1318
1319 for_each_sched_entity(se) { 1319 for_each_sched_entity(se) {
1320 struct cfs_rq *cfs_rq = cfs_rq_of(se); 1320 cfs_rq = cfs_rq_of(se);
1321 1321
1322 update_cfs_load(cfs_rq, 0); 1322 update_cfs_load(cfs_rq, 0);
1323 update_cfs_shares(cfs_rq); 1323 update_cfs_shares(cfs_rq);
@@ -1360,7 +1360,7 @@ static void dequeue_task_fair(struct rq *rq, struct task_struct *p, int flags)
1360 } 1360 }
1361 1361
1362 for_each_sched_entity(se) { 1362 for_each_sched_entity(se) {
1363 struct cfs_rq *cfs_rq = cfs_rq_of(se); 1363 cfs_rq = cfs_rq_of(se);
1364 1364
1365 update_cfs_load(cfs_rq, 0); 1365 update_cfs_load(cfs_rq, 0);
1366 update_cfs_shares(cfs_rq); 1366 update_cfs_shares(cfs_rq);