diff options
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r-- | kernel/sched_fair.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index e62d5b9b1582..b885b3c85bba 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) | |||
1053 | */ | 1053 | */ |
1054 | static void set_curr_task_fair(struct rq *rq) | 1054 | static void set_curr_task_fair(struct rq *rq) |
1055 | { | 1055 | { |
1056 | struct task_struct *curr = rq->curr; | 1056 | struct sched_entity *se = &rq->curr.se; |
1057 | struct sched_entity *se = &curr->se; | ||
1058 | struct cfs_rq *cfs_rq; | ||
1059 | |||
1060 | update_rq_clock(rq); | ||
1061 | 1057 | ||
1062 | for_each_sched_entity(se) { | 1058 | for_each_sched_entity(se) |
1063 | cfs_rq = cfs_rq_of(se); | 1059 | set_next_entity(cfs_rq_of(se), se); |
1064 | set_next_entity(cfs_rq, se); | ||
1065 | } | ||
1066 | } | 1060 | } |
1067 | #else | 1061 | #else |
1068 | static void set_curr_task_fair(struct rq *rq) | 1062 | static void set_curr_task_fair(struct rq *rq) |
@@ -1093,10 +1087,9 @@ struct sched_class fair_sched_class __read_mostly = { | |||
1093 | #ifdef CONFIG_SCHED_DEBUG | 1087 | #ifdef CONFIG_SCHED_DEBUG |
1094 | static void print_cfs_stats(struct seq_file *m, int cpu) | 1088 | static void print_cfs_stats(struct seq_file *m, int cpu) |
1095 | { | 1089 | { |
1096 | struct rq *rq = cpu_rq(cpu); | ||
1097 | struct cfs_rq *cfs_rq; | 1090 | struct cfs_rq *cfs_rq; |
1098 | 1091 | ||
1099 | for_each_leaf_cfs_rq(rq, cfs_rq) | 1092 | for_each_leaf_cfs_rq(cpu_rq(cpu), cfs_rq) |
1100 | print_cfs_rq(m, cpu, cfs_rq); | 1093 | print_cfs_rq(m, cpu, cfs_rq); |
1101 | } | 1094 | } |
1102 | #endif | 1095 | #endif |