arm: Update arch_scale_cpu_capacity() to reflect change to define
authorMorten Rasmussen <morten.rasmussen@arm.com>
Tue, 14 Apr 2015 15:25:31 +0000 (16:25 +0100)
committerLeo Yan <leo.yan@linaro.org>
Tue, 10 May 2016 08:49:49 +0000 (16:49 +0800)
arch_scale_cpu_capacity() is no longer a weak function but a #define
instead. Include the #define in topology.h.

cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Morten Rasmussen <morten.rasmussen@arm.com>
arch/arm/include/asm/topology.h
arch/arm/kernel/topology.c

index a69917b7d2c94115ac68ea8fa9550390ba47a605..e3e596cbb1a74433c63c9044962cd462d36e7f8a 100644 (file)
@@ -28,6 +28,8 @@ const struct cpumask *cpu_coregroup_mask(int cpu);
 #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
 
index 08b7847bf9124f004d7214c0e9c4dae23c0fffd2..614554765e4470466abac781c3a0bca7cec2cc1e 100644 (file)
@@ -42,7 +42,7 @@
  */
 static DEFINE_PER_CPU(unsigned long, cpu_scale);
 
-unsigned long arch_scale_cpu_capacity(struct sched_domain *sd, int cpu)
+unsigned long scale_cpu_capacity(struct sched_domain *sd, int cpu)
 {
        return per_cpu(cpu_scale, cpu);
 }