diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2014-05-27 13:50:41 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-06-05 05:52:32 -0400 |
commit | 5d4dfddd4f02b028d6ddaaa04d75d3b0cad1c9ae (patch) | |
tree | 03bd39cc1c5a904eef49340d46b2265769b5f557 /kernel/sched/fair.c | |
parent | ca8ce3d0b144c318a5a9ce99649053e9029061ea (diff) |
sched: Rename capacity related flags
It is better not to think about compute capacity as being equivalent
to "CPU power". The upcoming "power aware" scheduler work may create
confusion with the notion of energy consumption if "power" is used too
liberally.
Let's rename the following feature flags since they do relate to capacity:
SD_SHARE_CPUPOWER -> SD_SHARE_CPUCAPACITY
ARCH_POWER -> ARCH_CAPACITY
NONTASK_POWER -> NONTASK_CAPACITY
Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Morten Rasmussen <morten.rasmussen@arm.com>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: linaro-kernel@lists.linaro.org
Cc: Andy Fleming <afleming@freescale.com>
Cc: Anton Blanchard <anton@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Preeti U Murthy <preeti@linux.vnet.ibm.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Cc: Toshi Kani <toshi.kani@hp.com>
Cc: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linuxppc-dev@lists.ozlabs.org
Link: http://lkml.kernel.org/n/tip-e93lpnxb87owfievqatey6b5@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
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 | /* |