projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7650479
)
sched/topology: Add callback to read per CPU thermal pressure
author
Thara Gopinath
<thara.gopinath@linaro.org>
Sat, 22 Feb 2020 00:52:06 +0000
(19:52 -0500)
committer
Ingo Molnar
<mingo@kernel.org>
Fri, 6 Mar 2020 11:57:17 +0000
(12:57 +0100)
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
include/linux/sched/topology.h
patch
|
blob
|
history
diff --git
a/include/linux/sched/topology.h
b/include/linux/sched/topology.h
index f341163fedc90e46fbeac07430472f5d04d5da50..af9319e4cfb967c98a3a151bbe5829675308fea5 100644
(file)
--- 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));