From: Dietmar Eggemann Date: Thu, 10 May 2018 15:58:04 +0000 (+0100) Subject: ANDROID: arm: enable max frequency capping X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d0df20f98c5620fd71cc259862ef92e6ba5b8dda;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ANDROID: arm: enable max frequency capping Defines arch_scale_max_freq_capacity() to use the topology driver scale function. Signed-off-by: Dietmar Eggemann Signed-off-by: Ionela Voinescu Change-Id: I79f444399ea3b2948364fde80ccee52a9ece5b9a --- diff --git a/arch/arm/include/asm/topology.h b/arch/arm/include/asm/topology.h index 2a786f54d8b8..201dc2011c16 100644 --- a/arch/arm/include/asm/topology.h +++ b/arch/arm/include/asm/topology.h @@ -30,6 +30,9 @@ const struct cpumask *cpu_coregroup_mask(int cpu); /* Replace task scheduler's default frequency-invariant accounting */ #define arch_scale_freq_capacity topology_get_freq_scale +/* Replace task scheduler's default max-frequency-invariant accounting */ +#define arch_scale_max_freq_capacity topology_get_max_freq_scale + /* Replace task scheduler's default cpu-invariant accounting */ #define arch_scale_cpu_capacity topology_get_cpu_scale