From: Dietmar Eggemann Date: Fri, 25 Sep 2015 16:15:11 +0000 (+0100) Subject: arm64: Enable frequency invariant scheduler load-tracking support X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8411396e9c5cd1badfe05e08624d90cbbb7b1126;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git arm64: Enable frequency invariant scheduler load-tracking support Defines arch_scale_freq_capacity() to use cpufreq implementation. Including in topology.h like for the arm arch doesn't work because of CONFIG_COMPAT=y (Kernel support for 32-bit EL0). That's why cpufreq_scale_freq_capacity() has to be declared extern in topology.h. Signed-off-by: Dietmar Eggemann --- diff --git a/arch/arm64/include/asm/topology.h b/arch/arm64/include/asm/topology.h index a3e9d6fdbf21..72c47c3fa7b3 100644 --- a/arch/arm64/include/asm/topology.h +++ b/arch/arm64/include/asm/topology.h @@ -22,6 +22,12 @@ void init_cpu_topology(void); void store_cpu_topology(unsigned int cpuid); const struct cpumask *cpu_coregroup_mask(int cpu); +#ifdef CONFIG_CPU_FREQ +#define arch_scale_freq_capacity cpufreq_scale_freq_capacity +struct sched_domain; +extern unsigned long cpufreq_scale_freq_capacity(struct sched_domain *sd, int cpu); +#endif + #include #endif /* _ASM_ARM_TOPOLOGY_H */