[tip: sched/core] arm/topology: Populate arch_scale_thermal_pressure() for ARM platforms

From: tip-bot2 for Thara Gopinath
Date: Fri Mar 06 2020 - 09:43:28 EST


The following commit has been merged into the sched/core branch of tip:

Commit-ID: 8eab879c5463d1a16a314790764c4c9d6c74c64c
Gitweb: https://git.kernel.org/tip/8eab879c5463d1a16a314790764c4c9d6c74c64c
Author: Thara Gopinath <thara.gopinath@xxxxxxxxxx>
AuthorDate: Fri, 21 Feb 2020 19:52:09 -05:00
Committer: Ingo Molnar <mingo@xxxxxxxxxx>
CommitterDate: Fri, 06 Mar 2020 12:57:19 +01:00

arm/topology: Populate arch_scale_thermal_pressure() for ARM platforms

Hook up topology_get_thermal_pressure to arch_scale_thermal_pressure thus
enabling scheduler to retrieve instantaneous thermal pressure of a CPU.

Signed-off-by: Thara Gopinath <thara.gopinath@xxxxxxxxxx>
Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>
Link: https://lkml.kernel.org/r/20200222005213.3873-6-thara.gopinath@xxxxxxxxxx
---
arch/arm/include/asm/topology.h | 3 +++
1 file changed, 3 insertions(+)

diff --git a/arch/arm/include/asm/topology.h b/arch/arm/include/asm/topology.h
index 8a0fae9..435aba2 100644
--- a/arch/arm/include/asm/topology.h
+++ b/arch/arm/include/asm/topology.h
@@ -16,6 +16,9 @@
/* Enable topology flag updates */
#define arch_update_cpu_topology topology_update_cpu_topology

+/* Replace task scheduler's default thermal pressure retrieve API */
+#define arch_scale_thermal_pressure topology_get_thermal_pressure
+
#else

static inline void init_cpu_topology(void) { }