arm: Enable frequency invariant scheduler load-tracking support
authorDietmar Eggemann <dietmar.eggemann@arm.com>
Wed, 23 Sep 2015 11:47:48 +0000 (12:47 +0100)
committerLeo Yan <leo.yan@linaro.org>
Tue, 10 May 2016 08:49:48 +0000 (16:49 +0800)
Defines arch_scale_freq_capacity() to use cpufreq implementation.

Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
arch/arm/include/asm/topology.h

index 370f7a732900ae12e8831e6f3ce7390d16455fc8..a69917b7d2c94115ac68ea8fa9550390ba47a605 100644 (file)
@@ -24,6 +24,11 @@ void init_cpu_topology(void);
 void store_cpu_topology(unsigned int cpuid);
 const struct cpumask *cpu_coregroup_mask(int cpu);
 
+#ifdef CONFIG_CPU_FREQ
+#include <linux/cpufreq.h>
+#define arch_scale_freq_capacity cpufreq_scale_freq_capacity
+#endif
+
 #else
 
 static inline void init_cpu_topology(void) { }