===================================================================
@@ -102,7 +102,7 @@ SCHED_FEAT(CACHE_HOT_BUDDY, 1)
/*
* Use arch dependent cpu power functions
*/
-SCHED_FEAT(ARCH_POWER, 0)
+SCHED_FEAT(ARCH_POWER, 1)
SCHED_FEAT(HRTICK, 0)
SCHED_FEAT(DOUBLE_TICK, 0)
===================================================================
@@ -44,11 +44,9 @@ unsigned long arch_scale_freq_power(stru
unsigned long arch_scale_smt_power(struct sched_domain *sd, int cpu)
{
/*
- * aperf/mperf already includes the smt gain
+ * aperf/mperf already includes the smt gain, but represents capacity
+ * as 0 when idle. So for now just return default.
*/
- if (boot_cpu_has(X86_FEATURE_APERFMPERF))
- return SCHED_LOAD_SCALE;
-
return default_scale_smt_power(sd, cpu);
}
Enable the scheduler feature that allows use of arch_scale_smt_power. Stub out the broken x86 implementation. Signed-off-by: Joel Schopp <jschopp@austin.ibm.com> ---