Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2485384ybv; Fri, 21 Feb 2020 16:52:40 -0800 (PST) X-Google-Smtp-Source: APXvYqwWNezLWpOFn9s+SE4KzAr1OJektGS8Fat1FqGed0l2GVBxB8hxlAsS1fKdFJFg1xuZKBOr X-Received: by 2002:aca:ad47:: with SMTP id w68mr4230873oie.63.1582332760270; Fri, 21 Feb 2020 16:52:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582332760; cv=none; d=google.com; s=arc-20160816; b=ao762x19K1xMLCnV7an+0NkbZbeAx4ZxT8wH0/SAyWei5FioTEJorgs+13ZqW1h9ow QV902k5QDtfPfyU9LUR4mOC3MoGu86Jix0nG4m9QGAO2QXyQsu4H5YzvePtU6beIVbqI IrDHj/kQPCgmIPzQ162Jpum896qqhWAmYAgDBNi5OUjZOxuI+TY/lGyMxjflVNkJuJ1B gQgxdEBBe4rPqDW6rYxb90eDjAzY/pYK0B95Jg0rGAwAAjACqEhcMRhkdZGOtEK22+qI vNRTDtdGwNI7ofnUQzUpRm9HyYthADCFT3qfBUwMglO72Exwn8HDaIXjAlNcaXh8gP7J tzug== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=b3NipQ4L+3teHeOCgu/TzhU1JtcGO/hYc9QwCY4H/Bs=; b=Ccqzu7onMzuc7h9XzODr7cwfSocOTrOa4MiZ6ndFANumP2IPgRZ9ZcqCLlpVGlSTJ4 dIJH2LgFSiLdjqalih4PjNFGvJmoQ41cmx1/7ASZm7kcrSah5XGtgguLTBVqTqI2xJIy 7huPszWBVpWBpiXt6DlyHgQu9mqRpX8Y5iXzr9zecM1c0Qlv8ypujNtPpdpHhc9DPbha mU3ACEzoKdnq7OHi1TlILS8fSjOXndFZU1iRpILwKpQgr1y+7VWpxKtvfPg2+bDPRFYT u+tmxo7l+F0gr5QVR1TiTE4K6c5X1L8qARdsQMP+twahYpRfLpfMvcvREkrvCVQB1gw9 WzCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="GG/IWn/G"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n14si2300243otk.179.2020.02.21.16.52.27; Fri, 21 Feb 2020 16:52: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; dkim=pass header.i=@linaro.org header.s=google header.b="GG/IWn/G"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727715AbgBVAwV (ORCPT + 99 others); Fri, 21 Feb 2020 19:52:21 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:45717 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726802AbgBVAwU (ORCPT ); Fri, 21 Feb 2020 19:52:20 -0500 Received: by mail-qk1-f194.google.com with SMTP id a2so3596161qko.12 for ; Fri, 21 Feb 2020 16:52:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=b3NipQ4L+3teHeOCgu/TzhU1JtcGO/hYc9QwCY4H/Bs=; b=GG/IWn/Gu3D/7sJXlUXMqcDa24+HqrlVR+Yc34FPXBnl1U2Omzl8FBQKSRjQWJCAnP OnX0AMBdu/6AIt9HNJHEkxw0+QDFpTQkID7HVOsPbppweIwJJ1nPLI+pFa7XRH4JVOAP uGPbFxxN5aOJWYWFGlg9tQWDXywMccf1Nla45WpU+eVDUJ+s/Sq3svSlPTx09i76Tl7v wViiibeflfY/mW1o4d2mM1RvczsssrR2W1hsJ7BcwYRJLRXEKyyX3PdJOSgg627GaXdR XGSDYy2dEh0xL7eUGjNUStqJ4GQhC/FkwjDltEwCgLJNcG5ngj+EBpARvqIPPnEDNgVl /ucQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=b3NipQ4L+3teHeOCgu/TzhU1JtcGO/hYc9QwCY4H/Bs=; b=MGA2vqMagM2K9oSVr3WQLHw/A6YDfv1Tpe2u8hfNQ5ffYeNcPrHsCUXJQX4nPm1sie FYWUTA7izScPTTpVEomvYR+57Wu2h79tKbGp9sq9wN28u7VjUuw3FvWm3JyYBl/OaLVu +WI+Tsw9CkE6v0QlnA/dyOzPbtmaZQEpCRU16MdNp/A1t4HQrkhenMUPeY7LHk9J8MlY XfIHyG3RegD1ZQoQCj3jfy+uO/gZ4pQ+AxXhCHYZDfbcYg7G5deljDaToy5cH61x0MqI W/U9NEh5z5A0lhPVVv8s5mbBuLjtbSq/O8aSMh8iYVXoG4rMW/N6uNLfA1Y8RwAICS07 vk3w== X-Gm-Message-State: APjAAAVwZxU919PpU6TIP4LJPoSKY91GbznoKJTdyEEEEzO9PGqld0ip FtZzl6s9NTLyLKBGkkmds/ydFA== X-Received: by 2002:a05:620a:b07:: with SMTP id t7mr37650731qkg.11.1582332738242; Fri, 21 Feb 2020 16:52:18 -0800 (PST) Received: from pop-os.fios-router.home (pool-71-255-246-27.washdc.fios.verizon.net. [71.255.246.27]) by smtp.googlemail.com with ESMTPSA id 12sm359559qkj.136.2020.02.21.16.52.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2020 16:52:17 -0800 (PST) From: Thara Gopinath To: mingo@redhat.com, peterz@infradead.org, ionela.voinescu@arm.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rui.zhang@intel.com, qperret@google.com, daniel.lezcano@linaro.org, viresh.kumar@linaro.org, rostedt@goodmis.org, will@kernel.org, catalin.marinas@arm.com, sudeep.holla@arm.com, juri.lelli@redhat.com, corbet@lwn.net Cc: linux-kernel@vger.kernel.org, amit.kachhap@gmail.com, javi.merino@kernel.org, amit.kucheria@verdurent.com Subject: [Patch v10 2/9] sched/topology: Add hook to read per cpu thermal pressure. Date: Fri, 21 Feb 2020 19:52:06 -0500 Message-Id: <20200222005213.3873-3-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200222005213.3873-1-thara.gopinath@linaro.org> References: <20200222005213.3873-1-thara.gopinath@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Introduce arch_scale_thermal_pressure to retrieve per cpu thermal pressure. Signed-off-by: Thara Gopinath --- v6->v7: - Renamed arch_scale_thermal_capacity to arch_cpu_thermal_pressure as per review comments from Peter, Dietmar and Ionela. v9->v10: - Renamed arch_cpu_thermal_pressure to arch_scale_thermal_pressure as per review comments from Dietmar. 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 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)); -- 2.20.1