aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_fair.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2007-08-09 11:16:51 +0200
committerIngo Molnar <mingo@elte.hu>2007-08-09 11:16:51 +0200
commitc3b64f1e4f772418a649bb8e3b39fcea6c358330 (patch)
treee5ffd815cfe4d69a40928c6dbe24e33a1e44f658 /kernel/sched_fair.c
parentd9e0e6aa6d72df21ff190962c842e027fca0e009 (diff)
downloadkernel_samsung_tuna-c3b64f1e4f772418a649bb8e3b39fcea6c358330.zip
kernel_samsung_tuna-c3b64f1e4f772418a649bb8e3b39fcea6c358330.tar.gz
kernel_samsung_tuna-c3b64f1e4f772418a649bb8e3b39fcea6c358330.tar.bz2
sched: clean up set_curr_task_fair()
clean up set_curr_task_fair(). ( identity transformation that causes no change in functionality. ) text data bss dec hex filename 39170 3750 36 42956 a7cc sched.o.before 39170 3750 36 42956 a7cc sched.o.after Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r--kernel/sched_fair.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index e62d5b9..b885b3c 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -1053,16 +1053,10 @@ static void task_new_fair(struct rq *rq, struct task_struct *p)
*/
static void set_curr_task_fair(struct rq *rq)
{
- struct task_struct *curr = rq->curr;
- struct sched_entity *se = &curr->se;
- struct cfs_rq *cfs_rq;
-
- update_rq_clock(rq);
+ struct sched_entity *se = &rq->curr.se;
- for_each_sched_entity(se) {
- cfs_rq = cfs_rq_of(se);
- set_next_entity(cfs_rq, se);
- }
+ for_each_sched_entity(se)
+ set_next_entity(cfs_rq_of(se), se);
}
#else
static void set_curr_task_fair(struct rq *rq)
@@ -1093,10 +1087,9 @@ struct sched_class fair_sched_class __read_mostly = {
#ifdef CONFIG_SCHED_DEBUG
static void print_cfs_stats(struct seq_file *m, int cpu)
{
- struct rq *rq = cpu_rq(cpu);
struct cfs_rq *cfs_rq;
- for_each_leaf_cfs_rq(rq, cfs_rq)
+ for_each_leaf_cfs_rq(cpu_rq(cpu), cfs_rq)
print_cfs_rq(m, cpu, cfs_rq);
}
#endif