diff options
Diffstat (limited to 'kernel/sched/fair.c')
-rw-r--r-- | kernel/sched/fair.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index dc7d6527a282..d3c731222199 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c | |||
@@ -5672,8 +5672,8 @@ static void update_cpu_capacity(struct sched_domain *sd, int cpu) | |||
5672 | unsigned long capacity = SCHED_CAPACITY_SCALE; | 5672 | unsigned long capacity = SCHED_CAPACITY_SCALE; |
5673 | struct sched_group *sdg = sd->groups; | 5673 | struct sched_group *sdg = sd->groups; |
5674 | 5674 | ||
5675 | if ((sd->flags & SD_SHARE_CPUPOWER) && weight > 1) { | 5675 | if ((sd->flags & SD_SHARE_CPUCAPACITY) && weight > 1) { |
5676 | if (sched_feat(ARCH_POWER)) | 5676 | if (sched_feat(ARCH_CAPACITY)) |
5677 | capacity *= arch_scale_smt_capacity(sd, cpu); | 5677 | capacity *= arch_scale_smt_capacity(sd, cpu); |
5678 | else | 5678 | else |
5679 | capacity *= default_scale_smt_capacity(sd, cpu); | 5679 | capacity *= default_scale_smt_capacity(sd, cpu); |
@@ -5683,7 +5683,7 @@ static void update_cpu_capacity(struct sched_domain *sd, int cpu) | |||
5683 | 5683 | ||
5684 | sdg->sgc->capacity_orig = capacity; | 5684 | sdg->sgc->capacity_orig = capacity; |
5685 | 5685 | ||
5686 | if (sched_feat(ARCH_POWER)) | 5686 | if (sched_feat(ARCH_CAPACITY)) |
5687 | capacity *= arch_scale_freq_capacity(sd, cpu); | 5687 | capacity *= arch_scale_freq_capacity(sd, cpu); |
5688 | else | 5688 | else |
5689 | capacity *= default_scale_capacity(sd, cpu); | 5689 | capacity *= default_scale_capacity(sd, cpu); |
@@ -5782,7 +5782,7 @@ fix_small_capacity(struct sched_domain *sd, struct sched_group *group) | |||
5782 | /* | 5782 | /* |
5783 | * Only siblings can have significantly less than SCHED_CAPACITY_SCALE | 5783 | * Only siblings can have significantly less than SCHED_CAPACITY_SCALE |
5784 | */ | 5784 | */ |
5785 | if (!(sd->flags & SD_SHARE_CPUPOWER)) | 5785 | if (!(sd->flags & SD_SHARE_CPUCAPACITY)) |
5786 | return 0; | 5786 | return 0; |
5787 | 5787 | ||
5788 | /* | 5788 | /* |