arm: Update arch_scale_cpu_capacity() to reflect change to define
[firefly-linux-kernel-4.4.55.git] / arch / arm / include / asm / topology.h
index 370f7a732900ae12e8831e6f3ce7390d16455fc8..e3e596cbb1a74433c63c9044962cd462d36e7f8a 100644 (file)
@@ -24,6 +24,13 @@ 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
+#define arch_scale_cpu_capacity scale_cpu_capacity
+extern unsigned long scale_cpu_capacity(struct sched_domain *sd, int cpu);
+
 #else
 
 static inline void init_cpu_topology(void) { }