Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2045659ybl; Sat, 11 Jan 2020 08:00:18 -0800 (PST) X-Google-Smtp-Source: APXvYqxGcY7K0/yfK08XQKaVQqs49GKvwgDZiRLTWiGAqj8EDNz1RNkOK6ASJe7TsW+GZJW+rhZG X-Received: by 2002:a05:6830:3006:: with SMTP id a6mr7327008otn.264.1578758418739; Sat, 11 Jan 2020 08:00:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578758418; cv=none; d=google.com; s=arc-20160816; b=WxQQpCIV+tO5LHSDS4PvzEaUWBEHuqgoeUUdGiFWhZdvDAsQOalIdzXqvzUZzSmHDt U5ibWOouKJoG9mne0ETTBgiqZkQrsMreayt4MhCanIhs3AMOmb7JcqpEsbM07v1Bvvch uOGu+CknrblvEbGqkL1YYNbPS9JgjVMOOKQ5VyWuYAGPVbVdEp58oDile3rxngOjoLBv vD/VhNtJu89yEUG44VdUOL3eOcGSK0A5JtZd/Red2Bztnfr4reY8BeeRGiUVjvJNOc/X InG29tF7UESvGHN/UFlQsJd3GvNrcozTTxgb0r8EBXSeWgK18ys2246VN8SkOIJAoUfH 4aYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=ui1UWT3XjxwsXbc5J4SYo0+lZb6l6gnf1hsDYBb+xTU=; b=fDykEmX0oFV0JqbbbLrf/BFpiVc43Ym/e83itYfk9Ok/8yEXGgRKBhABnzrWTfE52r te3pLjhaBzH1XgbQGen8IpPhTpnX7oKdzFXfiNYTRYorxF+uIu1ee+zqA4YAIrGuHEBk 5zURb2JLP8O6RhTt88IfIVd3fH4DnrZDfw2oV2UQfw7kwoSJ/ci6qVfYd/QRVSAEmWx4 b3cL9CFHhr9kK97NA0VTgCBj3G3N3IJDtN3rv+RkkC2hC674zVnIff4/Su7ZbtDB9riv kWD/2tm/nInzdTS/ahg07CftrvcrDnXgM9Bc8o0xRBDnLQTzHXVBWhNLsLZU6qP3VUow Wglg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XMRqKWE4; 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 p14si3761679ota.71.2020.01.11.08.00.07; Sat, 11 Jan 2020 08:00:18 -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=XMRqKWE4; 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 S1730212AbgAKP7O (ORCPT + 99 others); Sat, 11 Jan 2020 10:59:14 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:35731 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730183AbgAKP7N (ORCPT ); Sat, 11 Jan 2020 10:59:13 -0500 Received: by mail-qk1-f194.google.com with SMTP id z76so4810155qka.2 for ; Sat, 11 Jan 2020 07:59:12 -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; bh=ui1UWT3XjxwsXbc5J4SYo0+lZb6l6gnf1hsDYBb+xTU=; b=XMRqKWE4SRlQUdki8sy9J3gjBKKPNnHwiB4DR9xYub0B++7PhOZJK3AHyLXilJpTjB qwmr5Lw0dvQd0J3HOiC/nXAGoioz++rHNoPJvq6fXyH9DM+mzQmBCL4gLUAJMTe5D4oM +/DydSeQ2Z400DrOw9wEunFRI+dYiDmFWI14BU+7hISoHj3l0VM+jyvHmB9gK+Dl+U3W r+0PCUAYwVDMNazbECCDkdAx7jFbHs+pP+ylC0OliakmiMNq5Sjl853E8X7C5oD8RghE 9Y0iWl6Wzycv7FzslKtFX4OTaOz/02RZh5eYwP/KlOtraLBfc7JI9gTnSafUmBSQC9Gh daAg== 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; bh=ui1UWT3XjxwsXbc5J4SYo0+lZb6l6gnf1hsDYBb+xTU=; b=Qr4wblTi7fFQQahosO2Af7XS2IvuOG9tZpbzJTSstG/P6x6pBUhijagK0aeBpfjZlG Jrg+1mOTk+pdJa/HS9MgyNmyl8s4XactuDhA9/bQStxZ14wKhIiLn8JqOBTwfVmLyauo PS9Tqvhi912skcoS9TH9sXPRsqvL6Sjf02UpLkX5NBYTXqUsz5KMCKVFAY3XWQXp2ZJX v3UkNeoPh5gA8dD1oANWVt4U1n+eFr5eJ8G96HRQiKPKjKbCLSf9xsU2SduK+RFyvqKU DmFZ83US/BvWuQCgKeNCuuV33qXDXTwo4T3Fj47kqMxW5v3q0zBmnxLYxVWlWvo6vJP8 L2vA== X-Gm-Message-State: APjAAAWoGRp/8RsXjGJsLtotXVuvkgEGJbWKl/rePwAPua0V3nOLBMDq F9kV39fwpyDCI2MOQTktISO+kg== X-Received: by 2002:a05:620a:a5b:: with SMTP id j27mr8569316qka.286.1578758352431; Sat, 11 Jan 2020 07:59:12 -0800 (PST) Received: from Thara-Work-Ubuntu.fios-router.home (pool-71-255-246-27.washdc.fios.verizon.net. [71.255.246.27]) by smtp.googlemail.com with ESMTPSA id l49sm2843478qtk.7.2020.01.11.07.59.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 11 Jan 2020 07:59:11 -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 Cc: linux-kernel@vger.kernel.org, amit.kachhap@gmail.com, javi.merino@kernel.org, amit.kucheria@verdurent.com Subject: [Patch v7 2/7] sched/topology: Add hook to read per cpu thermal pressure. Date: Sat, 11 Jan 2020 10:59:01 -0500 Message-Id: <1578758346-507-3-git-send-email-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1578758346-507-1-git-send-email-thara.gopinath@linaro.org> References: <1578758346-507-1-git-send-email-thara.gopinath@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Introduce arch_cpu_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. 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