]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
arm64/topology: Populate arch_scale_thermal_pressure() for arm64 platforms
authorThara Gopinath <thara.gopinath@linaro.org>
Sat, 22 Feb 2020 00:52:08 +0000 (19:52 -0500)
committerIngo Molnar <mingo@kernel.org>
Fri, 6 Mar 2020 11:57:19 +0000 (12:57 +0100)
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@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lkml.kernel.org/r/20200222005213.3873-5-thara.gopinath@linaro.org
arch/arm64/include/asm/topology.h

index a4d945db95a299f5f2c733d7cc4aa931ace67ed0..cbd70d78ef15e254b4c0eda901c66b7068eb1f86 100644 (file)
@@ -25,6 +25,9 @@ int pcibus_to_node(struct pci_bus *bus);
 /* 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
+
 #include <asm-generic/topology.h>
 
 #endif /* _ASM_ARM_TOPOLOGY_H */