diff options
| -rw-r--r-- | kernel/sched/fair.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index a6b8157197bf..0a551dfe54a0 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c | |||
| @@ -5692,10 +5692,8 @@ static int wake_wide(struct task_struct *p) | |||
| 5692 | * scheduling latency of the CPUs. This seems to work | 5692 | * scheduling latency of the CPUs. This seems to work |
| 5693 | * for the overloaded case. | 5693 | * for the overloaded case. |
| 5694 | */ | 5694 | */ |
| 5695 | |||
| 5696 | static bool | 5695 | static bool |
| 5697 | wake_affine_idle(struct sched_domain *sd, struct task_struct *p, | 5696 | wake_affine_idle(int this_cpu, int prev_cpu, int sync) |
| 5698 | int this_cpu, int prev_cpu, int sync) | ||
| 5699 | { | 5697 | { |
| 5700 | /* | 5698 | /* |
| 5701 | * If this_cpu is idle, it implies the wakeup is from interrupt | 5699 | * If this_cpu is idle, it implies the wakeup is from interrupt |
| @@ -5752,8 +5750,8 @@ static int wake_affine(struct sched_domain *sd, struct task_struct *p, | |||
| 5752 | int this_cpu = smp_processor_id(); | 5750 | int this_cpu = smp_processor_id(); |
| 5753 | bool affine = false; | 5751 | bool affine = false; |
| 5754 | 5752 | ||
| 5755 | if (sched_feat(WA_IDLE) && !affine) | 5753 | if (sched_feat(WA_IDLE)) |
| 5756 | affine = wake_affine_idle(sd, p, this_cpu, prev_cpu, sync); | 5754 | affine = wake_affine_idle(this_cpu, prev_cpu, sync); |
| 5757 | 5755 | ||
| 5758 | if (sched_feat(WA_WEIGHT) && !affine) | 5756 | if (sched_feat(WA_WEIGHT) && !affine) |
| 5759 | affine = wake_affine_weight(sd, p, this_cpu, prev_cpu, sync); | 5757 | affine = wake_affine_weight(sd, p, this_cpu, prev_cpu, sync); |
