diff options
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r-- | kernel/sched_fair.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 6c361472cc74..d3c03070872d 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -1067,8 +1067,9 @@ static void task_new_fair(struct rq *rq, struct task_struct *p) | |||
1067 | update_curr(cfs_rq); | 1067 | update_curr(cfs_rq); |
1068 | place_entity(cfs_rq, se, 1); | 1068 | place_entity(cfs_rq, se, 1); |
1069 | 1069 | ||
1070 | /* 'curr' will be NULL if the child belongs to a different group */ | ||
1070 | if (sysctl_sched_child_runs_first && this_cpu == task_cpu(p) && | 1071 | if (sysctl_sched_child_runs_first && this_cpu == task_cpu(p) && |
1071 | curr->vruntime < se->vruntime) { | 1072 | curr && curr->vruntime < se->vruntime) { |
1072 | /* | 1073 | /* |
1073 | * Upon rescheduling, sched_class::put_prev_task() will place | 1074 | * Upon rescheduling, sched_class::put_prev_task() will place |
1074 | * 'current' within the tree based on its new key value. | 1075 | * 'current' within the tree based on its new key value. |