| From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
| From: Dietmar Eggemann <dietmar.eggemann@arm.com> |
| Date: Thu, 10 May 2018 16:54:16 +0100 |
| Subject: ANDROID: arm64: enable max frequency capping |
| |
| Defines arch_scale_max_freq_capacity() to use the topology driver |
| scale function. |
| |
| Change-Id: If7565747ec862e42ac55196240522ef8d22ca67d |
| Signed-off-by: Ionela Voinescu <ionela.voinescu@arm.com> |
| Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com> |
| Signed-off-by: Quentin Perret <quentin.perret@arm.com> |
| --- |
| arch/arm64/include/asm/topology.h | 3 +++ |
| 1 file changed, 3 insertions(+) |
| |
| diff --git a/arch/arm64/include/asm/topology.h b/arch/arm64/include/asm/topology.h |
| index a4d945db95a2..70697177d6ec 100644 |
| --- a/arch/arm64/include/asm/topology.h |
| +++ b/arch/arm64/include/asm/topology.h |
| @@ -19,6 +19,9 @@ int pcibus_to_node(struct pci_bus *bus); |
| /* 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 |
| |