Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6901711ybf; Fri, 6 Mar 2020 06:43:40 -0800 (PST) X-Google-Smtp-Source: ADFU+vuqd40Vc7AqYgTNDc8H50HWm/mcX0/l0cwkSiqOhcTspTzdKDr/fNJ1ar3bwfZgvisqJriH X-Received: by 2002:aca:814:: with SMTP id 20mr2824958oii.159.1583505820439; Fri, 06 Mar 2020 06:43:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583505820; cv=none; d=google.com; s=arc-20160816; b=KEgSxd7wdenVVbV10pSLoyLVVyejHnWqvGzcYlX0GqJT2fYTvhx4OYNqb5ZzcjMhWG 2Sat/tKCqtrl+GWrVvIsSvUIejwy49qp5gfEyEfjYqIGizNicoY1hyT9FDyoTiumIDaA 1S5/pD6IUESGaBF3WGDSM9+7GX52SobRgbz5nTQ4Az5aJauD6poteaITkSVcTJEFl5Zx GNwR9Yo4jNViM4dAM4MeSXxoMpVzZe4GHn1hds5xWjN7BcmepOkZqg31Mc4p9P/jQ+7P 7Euv0qOKrjaMINNF0PXgUQwWpdFtfsyPfQnA9T3+SRCF44qIvDLQmu1Y56ppM7aB2+rQ fJqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=yKiOfgvJ98/0guwqf9BGnwDMVx2kGL5uapAZFFV1fUU=; b=P/CZjsfzWpmr/x+ft4lnQ9SKGrXNZ+hUplQIUAjVOKbXTgGjGTODCBL8gvPQN+jJe3 GFqlok+5STP4L2r5W94P/lnxYz/M8HlbFrVEvLHfFOoK+jd8R+rra+B8EJGbhwDougqJ CwZ3oUDac7Vs78ebkR605/VPu/V8zlZWo6jJM3Q3xiVclG8SAEhbhgxWWNCXdNAwovWX szh3hOm32+dGbmigSC+FAnxnf1T2MagBloisGVVDGdWio6UceKJQbA9SBpk0YIXF2ad8 0xLronEUBO4zQ5zXwJhVEhWlp+ZudvFQwFOwZG9Nvve7MlcHY1jR6EOrfCNV27gaf8bt k7zw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m22si1567977otf.63.2020.03.06.06.43.28; Fri, 06 Mar 2020 06:43:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727425AbgCFOmp (ORCPT + 99 others); Fri, 6 Mar 2020 09:42:45 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:53879 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727303AbgCFOm1 (ORCPT ); Fri, 6 Mar 2020 09:42:27 -0500 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jAEBB-0006P7-W6; Fri, 06 Mar 2020 15:42:22 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 290831C21D7; Fri, 6 Mar 2020 15:42:11 +0100 (CET) Date: Fri, 06 Mar 2020 14:42:10 -0000 From: "tip-bot2 for Thara Gopinath" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/topology: Add callback to read per CPU thermal pressure Cc: Thara Gopinath , "Peter Zijlstra (Intel)" , Ingo Molnar , x86 , LKML In-Reply-To: <20200222005213.3873-3-thara.gopinath@linaro.org> References: <20200222005213.3873-3-thara.gopinath@linaro.org> MIME-Version: 1.0 Message-ID: <158350573088.28353.8874204927022983561.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the sched/core branch of tip: Commit-ID: 36a0df85d2e85e1929e8cd607e19243e5a2754e7 Gitweb: https://git.kernel.org/tip/36a0df85d2e85e1929e8cd607e19243e5a2754e7 Author: Thara Gopinath AuthorDate: Fri, 21 Feb 2020 19:52:06 -05:00 Committer: Ingo Molnar CommitterDate: Fri, 06 Mar 2020 12:57:17 +01:00 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 --- 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..af9319e 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));