ANDROID: arm: enable max frequency capping
authorDietmar Eggemann <dietmar.eggemann@arm.com>
Thu, 10 May 2018 15:58:04 +0000 (16:58 +0100)
committerIonela Voinescu <ionela.voinescu@arm.com>
Wed, 18 Jul 2018 10:16:24 +0000 (11:16 +0100)
Defines arch_scale_max_freq_capacity() to use the topology driver
scale function.

Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Ionela Voinescu <ionela.voinescu@arm.com>
Change-Id: I79f444399ea3b2948364fde80ccee52a9ece5b9a

arch/arm/include/asm/topology.h

index 2a786f54d8b8b26af5b17f00c3373e09da3e30f8..201dc2011c16064188101527120ce9073afd4556 100644 (file)
@@ -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