From: Thara Gopinath Date: Sat, 22 Feb 2020 00:52:06 +0000 (-0500) Subject: sched/topology: Add callback to read per CPU thermal pressure X-Git-Tag: v5.7-rc1~179^2~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=36a0df85d2e85e1929e8cd607e19243e5a2754e7;p=thirdparty%2Fkernel%2Flinux.git sched/topology: Add callback to read per CPU thermal pressure Introduce the arch_scale_thermal_pressure() callback to retrieve per CPU thermal pressure. Signed-off-by: Thara Gopinath Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Ingo Molnar Link: https://lkml.kernel.org/r/20200222005213.3873-3-thara.gopinath@linaro.org --- diff --git a/include/linux/sched/topology.h b/include/linux/sched/topology.h index f341163fedc90..af9319e4cfb96 100644 --- a/include/linux/sched/topology.h +++ b/include/linux/sched/topology.h @@ -225,6 +225,14 @@ unsigned long arch_scale_cpu_capacity(int cpu) } #endif +#ifndef arch_scale_thermal_pressure +static __always_inline +unsigned long arch_scale_thermal_pressure(int cpu) +{ + return 0; +} +#endif + static inline int task_node(const struct task_struct *p) { return cpu_to_node(task_cpu(p));