aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/sched
diff options
context:
space:
mode:
authorThara Gopinath <thara.gopinath@linaro.org>2020-02-21 19:52:06 -0500
committerIngo Molnar <mingo@kernel.org>2020-03-06 12:57:17 +0100
commit36a0df85d2e85e1929e8cd607e19243e5a2754e7 (patch)
tree2ba35c7d1e31aed18e13d7a497442d8bc38419c0 /include/linux/sched
parentsched/pelt: Add support to track thermal pressure (diff)
downloadwireguard-linux-36a0df85d2e85e1929e8cd607e19243e5a2754e7.tar.xz
wireguard-linux-36a0df85d2e85e1929e8cd607e19243e5a2754e7.zip
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 <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-3-thara.gopinath@linaro.org
Diffstat (limited to 'include/linux/sched')
-rw-r--r--include/linux/sched/topology.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/sched/topology.h b/include/linux/sched/topology.h
index f341163fedc9..af9319e4cfb9 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));