diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 88bca7125b26..823f60abf6e6 100755 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -6648,8 +6648,7 @@ static int wake_wide(struct task_struct *p, int sibling_count_hint) */ static bool -wake_affine_idle(struct sched_domain *sd, struct task_struct *p, - int this_cpu, int prev_cpu, int sync) +wake_affine_idle(int this_cpu, int prev_cpu, int sync) { if (idle_cpu(this_cpu)) return true; @@ -6700,8 +6699,8 @@ static int wake_affine(struct sched_domain *sd, struct task_struct *p, int this_cpu = smp_processor_id(); bool affine = false; - if (sched_feat(WA_IDLE) && !affine) - affine = wake_affine_idle(sd, p, this_cpu, prev_cpu, sync); + if (sched_feat(WA_IDLE)) + affine = wake_affine_idle(this_cpu, prev_cpu, sync); if (sched_feat(WA_WEIGHT) && !affine) affine = wake_affine_weight(sd, p, this_cpu, prev_cpu, sync);