From bcf1c9d86fe2bc003d9aaae1c661c881ac9a92e6 Mon Sep 17 00:00:00 2001 From: Dietmar Eggemann Date: Fri, 14 Jul 2017 14:30:31 +0100 Subject: [PATCH] arm64: enable max frequency capping Defines arch_scale_max_freq_capacity() to use cpufreq implementation. Change-Id: I06f9ffbe521d5ba317482b09ea0df4488dab197c Signed-off-by: Dietmar Eggemann Signed-off-by: Chris Redpath --- arch/arm64/include/asm/topology.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/include/asm/topology.h b/arch/arm64/include/asm/topology.h index 237eaa0d5cf7..342ff869023f 100644 --- a/arch/arm64/include/asm/topology.h +++ b/arch/arm64/include/asm/topology.h @@ -35,6 +35,8 @@ struct sched_domain; #ifdef CONFIG_CPU_FREQ #define arch_scale_freq_capacity cpufreq_scale_freq_capacity extern unsigned long cpufreq_scale_freq_capacity(struct sched_domain *sd, int cpu); +#define arch_scale_max_freq_capacity cpufreq_scale_max_freq_capacity +extern unsigned long cpufreq_scale_max_freq_capacity(struct sched_domain *sd, int cpu); #endif #define arch_scale_cpu_capacity scale_cpu_capacity extern unsigned long scale_cpu_capacity(struct sched_domain *sd, int cpu);