lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 28 Jan 2020 17:36:01 -0500 From: Thara Gopinath <thara.gopinath@...aro.org> To: mingo@...hat.com, peterz@...radead.org, ionela.voinescu@....com, vincent.guittot@...aro.org, dietmar.eggemann@....com, rui.zhang@...el.com, qperret@...gle.com, daniel.lezcano@...aro.org, viresh.kumar@...aro.org, rostedt@...dmis.org, will@...nel.org, catalin.marinas@....com, sudeep.holla@....com, juri.lelli@...hat.com, corbet@....net Cc: linux-kernel@...r.kernel.org, amit.kachhap@...il.com, javi.merino@...nel.org, amit.kucheria@...durent.com Subject: [Patch v9 2/8] sched/topology: Add hook to read per cpu thermal pressure. Introduce arch_cpu_thermal_pressure to retrieve per cpu thermal pressure. Signed-off-by: Thara Gopinath <thara.gopinath@...aro.org> --- v6->v7: - Renamed arch_scale_thermal_capacity to arch_cpu_thermal_pressure as per review comments from Peter, Dietmar and Ionela. include/linux/sched/topology.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/linux/sched/topology.h b/include/linux/sched/topology.h index f341163..850b3bf 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_cpu_thermal_pressure +static __always_inline +unsigned long arch_cpu_thermal_pressure(int cpu) +{ + return 0; +} +#endif + static inline int task_node(const struct task_struct *p) { return cpu_to_node(task_cpu(p)); -- 2.1.4
Powered by blists - more mailing lists